RuntimeException:无法启动 Selenium 会话:内部服务器错误

发布于 2024-07-23 06:55:35 字数 1355 浏览 3 评论 0原文

我正在尝试使用硒检测空中碰撞问题(同时编辑)。

因此,我使用以下(超类)启动一个selenium会话A

selenium = new MASSelenium(serverHost, serverPort, *iexplore, browserURL);
selenium.start();
selenium.open("index.cgi");

,然后尝试启动一个不同的selenium会话B,指向超类(子类)中的不同浏览器:

selenium2 = new MASSelenium(getServerHost(), getServerPort(), *firefox, getBrowserURL());
selenium2.start();
selenium2.open("index.cgi");

它在我的本地计算机上运行良好(行为符合预期),但是当我在远程机器上运行相同的测试(使用bamboo构建工具),我得到这个异常:

java.lang.RuntimeException: Could not start Selenium session: Internal Server Error
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
    at gov.baba.arc.mas.selenium.tests.SimultaneousEditingConflictDetected.setUp(SimultaneousEditingConflictDetected.java:78)
Caused by: com.thoughtworks.selenium.SeleniumException: Internal Server Error
    at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
    at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:168)
    at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:104)
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:86)

知道为什么会发生这种情况吗?

I am trying to detect a midair collision problem (simultaneous editin) using selenium.

So I start a selenium session A with following (Super Class)

selenium = new MASSelenium(serverHost, serverPort, *iexplore, browserURL);
selenium.start();
selenium.open("index.cgi");

then I try starting a different selenium session B pointing to a different browser from the superclass (Sub Class):

selenium2 = new MASSelenium(getServerHost(), getServerPort(), *firefox, getBrowserURL());
selenium2.start();
selenium2.open("index.cgi");

It works fine on my local machine (behaves as expected) but then when i run this same test on a remote machine (using bamboo build tool), i get this exception:

java.lang.RuntimeException: Could not start Selenium session: Internal Server Error
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
    at gov.baba.arc.mas.selenium.tests.SimultaneousEditingConflictDetected.setUp(SimultaneousEditingConflictDetected.java:78)
Caused by: com.thoughtworks.selenium.SeleniumException: Internal Server Error
    at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
    at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:168)
    at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:104)
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:86)

Any idea why this is happening?

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

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

发布评论

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

评论(1

泛滥成性 2024-07-30 06:55:35

我有同样的问题。 我通过升级bamboo runner上的Selenium本身(而不是驱动程序)解决了这个问题

I had the same Problem. I solved it by upgrading Selenium itself (not the driver) on the bamboo runner

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