【发布时间】:2018-09-18 14:42:33
【问题描述】:
我已经建立了一个 selenium 网格集线器和节点。在我的 java 中,我将我的功能设置为:
Login.capability = DesiredCapabilities.chrome();
Login.capability.setVersion("55.0.2");
Login.capability.setBrowserName("chrome");
Login.capability.setPlatform(org.openqa.selenium.Platform.WINDOWS);
Login.driver = new RemoteWebDriver(new URL("http://xxx.xxx.xxx.xxx/wd/hub"), Login.capability);
当我开始构建时,我收到以下错误消息:
Unable to create new remote session. desired capabilities = Capabilities [{browserName=chrome, version=55.0.2, platform=WINDOWS}], required capabilities = Capabilities [{}]
集线器输出:
selenium grid no capabilities found in request
节点输出这样说:
16:23:13.323 INFO [ActiveSessionFactory.apply] - Capabilities are: {
"browserName": "chrome",
"goog:chromeOptions": {
},
"platform": "WINDOWS",
"version": "55.0.2"
}
16:23:13.324 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
Starting ChromeDriver 2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5) on port XXXXXXXXX
Only local connections are allowed.
所以看起来节点工作正常,但为什么集线器说日志中没有功能?
【问题讨论】:
标签: selenium google-chrome webdriver selenium-chromedriver selenium-grid