Selenium RC,在Linux上,有没有办法让所有浏览器实例在后台运行?

发布于 2024-09-25 14:57:58 字数 216 浏览 3 评论 0原文

我一直在研究这个,就如何在后台运行 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 技术交流群。

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

发布评论

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

评论(2

北城半夏 2024-10-02 14:57:58

如果您使用的是 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.

转身以后 2024-10-02 14:57:58

可以在虚拟窗口系统(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!

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