Selenium:如何阻止 RemoteRunner.html 被调用

发布于 2024-08-18 03:26:42 字数 266 浏览 2 评论 0原文

我在 Linux 上使用 Selenium 作为 Java 应用程序之一。该应用程序调用 mozilla 浏览器,填写登录详细信息(用户名和密码),然后提交表单。我可以使用 selenium 来实现这一点,但是每次选择一个 url 时,都会调用 2 个 mozilla 实例。一个实例是所选 url 的实例,另一个实例是 RemoteRunner.html,其中包含 selenium 命令历史记录和其他详细信息。

我不想调用此页面。有没有办法阻止该页面被调用?

谢谢和问候, 苏尼尔.

I am using selenium for one for my Java applications on linux. The application invokes a mozilla browser, fills login details (username and password), and then submits the form. I am able to achieve this using selenium, but every time a url is selected 2 instances of mozilla is getting invoked. One instance is that of the url selected and the other instance is a RemoteRunner.html which has selenium command history and other details.

I don't want this page to be invoked. Is there a way to stop this page from getting invoked?

Thanks and Regards,
Sunil.

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

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

发布评论

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

评论(1

还如梦归 2024-08-25 03:26:42

RemoteRunner 窗口是必需的,因为它在另一个窗口中控制正在测试的应用程序。您可以使用命令行选项 multiWindow=false 在单个窗口中运行 Selenium,但这会使用框架,这有时会导致被测应用程序出现问题。

The RemoteRunner window is required as it is controlling the application under test within the other window. You can run Selenium in a single window using the command line option multiWindow=false however this uses frames, which can sometimes cause issues with the application under test.

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