【问题标题】:Selenide GRID - how to configureSelenide GRID - 如何配置
【发布时间】:2018-06-28 22:29:13
【问题描述】:

我正在尝试使用 Selenide 运行 GRID,但出现错误。我有一个带有两个节点的集线器——一个带有 Firefox,第二个带有 chrom。我也用这个配置

    Configuration.browser = "chrome";
    Configuration.remote="http://localhost:4444/wd/hub";
    Configuration.baseUrl = "http://typujwynik.cba.pl/index.php?cmd=mypreds";

不幸的是,我得到了:

org.openqa.selenium.SessionNotCreatedException: Unable to create new service: ChromeDriverService
Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:32:19.891Z'
System info: host: 'LAPTOP-1OF5RPN0', ip: '192.168.1.18', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_171'
Driver info: driver.version: unknown
Command duration or timeout: 74 milliseconds
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
    at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
    at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
    at ...

谁能告诉我为什么它不起作用? 我 Selenide FAQs 说添加Configuration.remote="http://localhost:4444/wd/hub"; 就足够了

http://selenide.org/faq.html

【问题讨论】:

    标签: selenium webdriver selenium-grid selenide


    【解决方案1】:

    通过这样的配置:

    Configuration.remote="http://localhost:4444/wd/hub";

    或者像这样通过maven:

    -Dremote="http://localhost:4444/wd/hub"

    确保浏览器与您的节点匹配,区分大小写可能是一个因素,因为selenide.browserChrome 而您的节点可能是chrome

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-08
      • 2021-01-22
      • 2021-07-04
      • 2015-12-06
      • 2014-02-18
      • 1970-01-01
      • 2020-03-22
      • 1970-01-01
      相关资源
      最近更新 更多