Selenium RC,在Linux上,有没有办法让所有浏览器实例在后台运行?
我一直在研究这个,就如何在后台运行 selenium 浏览器实例而言。我发现了一些关于使用虚拟 GUI 实例或类似的东西,但这都是针对 Windows 的。
我正在使用 Ubuntu linux,所以我想知道最简单的方法是抑制为启动 selenium 实例的用户显示的实际浏览器实例,因为我目前正在线程化其中的 25 个实例,并且它的类型奇怪/烦人的是他们都打开了。
感谢您的任何建议。
I've been looking into this, as far as how I can run selenium browser instances in the background. I found some things about using a virtual GUI instance, or something like that, but it was all for Windows.
I'm using Ubuntu linux so I'm wondering what the easiest way would be to suppress the actual browser instances showing up for the user who started the selenium instances since I am threading like 25 of these, at the moment, and its kind of strange / annoying having all of them open.
Thanks for any advice.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用的是 Firefox,您可以执行 *custom path/to/browser --display=:0。如果您想使用其他浏览器并用 java 编写测试,您可以使用 htmlunit 并指定功能。如果您使用 ruby,则可以以与 htmlunit 类似的方式使用 capybara。
If you are using Firefox you can do *custom path/to/browser --display=:0. If you want to use other browsers and writing your tests in java you can use htmlunit and specify the capabilities. If you are using ruby you can use capybara in a similar way to htmlunit.
可以在虚拟窗口系统(Xvfb)中运行它。
您可能会在这里发现一些有趣的内容:http://wiki.openqa。 org/display/SRC/Selenium-RC+and+Continously+Integration
页面底部有示例。
我们很快就会尝试一下!
祝你好运!
There is a possibility to run it in a virtual window system (Xvfb).
You might find something interesting here: http://wiki.openqa.org/display/SRC/Selenium-RC+and+Continuous+Integration
There are samples at the bottom of the page.
We're going to try that out pretty soon!
Good luck!