我正在使用Selenium Grid。我最近更新了VM (节点)到Windows 10,它不再工作了。这是细节
我通过以下方式将这个VM Win10注册为网格的节点:
java -Dwebdriver.ie.driver=C:\Selenium\IEDriverServer.exe -jar selenium-server-standalone-2.53.0.jar -role node -hub http://10.0.50.34:4444/grid/register/ -trustAllSSLCertificates(这以前在VM Win8上运行得很好)我可以在网格上看到这个VM Win10是通过3浏览器IE11、FF和Chrome注册的。
在我的代码中,我通过以下方式创建web驱动程序:
capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("applicationName", "qa-user");
webDriver = new RemoteWebDriver(new URL("http://10.0.50.34:4444/wd/hub"), capabilities);当我执行测试时,我总是会收到这个错误。
转发新会话错误找不到: Capabilities {platform=ANY,browserName=firefox,applicationName=qa,version=}
它以前在节点上的所有浏览器上都是这样工作的。我不知道是否错过了节点VM Win10上的一些设置。
发布于 2016-04-15 15:53:03
您是否尝试过在类中直接指定IEDriver的路径来运行测试?
就我的VM Win10而言,我使用以下方法:
java -jar selenium-server-standalone-2.53.0.jar -role hub -port 4444 -host x.x.x.xJava类:
System.setProperty("webdriver.ie.driver", "C:\\Users\\IEUser\\Desktop\\selenium-grid\\IEDriverServer.exe");转发新会话错误找不到: Capabilities {platform=ANY,browserName=firefox,applicationName=qa,version=}
此错误显示您试图创建一个具有Grid不知道的功能的新浏览器会话。
https://stackoverflow.com/questions/36619010
复制相似问题