在 selenium 中调试 user-extensions.js 的可能性

发布于 2024-09-13 15:04:05 字数 207 浏览 5 评论 0原文

我有一个通过 selenium 测试的网络应用程序。一切都运行良好:用 java 编写测试,通过 firebug 在我的 web 应用程序中设置断点。

不幸的是,我无法自行调试 user-extensions.js:启动 java-test 后,会打开两个 Firefox 窗口。一个保存要测试的 Web 应用程序,另一个保存使用用户扩展的数据流。

如何调试用户扩展?

I have a webapp which is tested by selenium. Everything works well: writing tests in java, setting breakpoints in my webapp through firebug.

unfortunately I am not able to debug the user-extensions.js it self: After starting the java-test, two firefox windows are opened. One holds the webapp to test, the other one holds the data-flow which uses the user-extensions.

How can I debug the user-extensions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

深海夜未眠 2024-09-20 15:05:30

可以使用 Venkman 调试器(一个单独的 Firefox 扩展)和直到版本 32 的 Firefox,这相当不错珍贵的组合

在 Firefox 33 及更高版本中,Venkman 因 api 更改而损坏,并且不幸的是,本机调试器不允许调试基于 xul 的扩展。

It's possibile using the Venkman debugger (a separate Firefox extension) and Firefox up until version 32, and that's quite a precious combination.

With Firefox 33 and later, Venkman is broken by api changes, and the native debugger unluckily doesn't allow to debug xul based extensions.

爱,才寂寞 2024-09-20 15:05:19

这实际上取决于您使用的浏览器。我已经能够使用 Chrome 调试用户扩展。在控制窗口中,您需要右键单击,然后以选项卡的形式查看该窗口。完成此操作后,您可以激活控制窗口的开发人员工具,其中包括 JavaScript 调试器。

It really depends on the browser you're using. I've been able to debug user-extensions using Chrome. In the control Window, you need to right-click and then view the window as a tab. Once you do that, you can activate the developer tools for the control window, which will include the JavaScript debugger.

绝影如岚 2024-09-20 15:05:01

看来这是不可能的。我做了一个解决方法,并将功能切换到我的网络应用程序以在那里调试它们。

It seems that it is not possible. I made a workaround and switched the functions to my webapp to debug them there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文