什么可能导致`UnreachableBrowserException:无法启动新会话??

时间:2015-06-09 14:28:11

标签: selenium selenium-webdriver webdriver

我尝试运行与远程selenium Web驱动程序服务器交互的selenium客户端。

由于连接被拒绝,我的部分(仅部分)测试失败。

我应该在托管服务器的计算机上检查什么?

com.x.inject.ProvisionException: Guice provision errors:

    1) Error in custom provider, org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
    Build info: version: '2.44.0', revision: '76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40'
    System info: host: 'w04.hfa.corp.x.com', ip: '172.28.144.7', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-30-generic', java.version: '1.8.0_25'
    Driver info: driver.version: RemoteWebDriver
      while locating com.waze.testing.guice.providers.WebDriverProvider
      at com.waze.testing.MainModule.configure(MainModule.java:44)
      while locating org.openqa.selenium.WebDriver

    1 error
        at com.x.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1009)
        at com.x.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1035)
        at com.waze.testing.cucumber.steps.Hooks.before(Hooks.java:39)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

1 个答案:

答案 0 :(得分:1)

回溯中的Selenium 2.44和“Native Method”短语让我觉得这是一个兼容性问题将selenium 升级到最新版本(2.46当前版本)。