Selenium远程驱动程序无法找到转发新会话的错误

时间:2016-04-14 09:31:06

标签: java selenium selenium-webdriver selenium-grid remotewebdriver

我正在使用Selenium Grid。我最近将VM(节点)更新到Windows 10,它不再起作用了。这是详细信息

我通过以下方式将此VM Win10注册为Grid的节点:

style="text-decoration:none"

(之前在VM Win8上运行良好)我可以在网格上看到这个VM Win10已注册3浏览器IE11,FF和Chrome

在我的代码中,我通过以下方式创建了Web驱动程序:

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

执行测试时,我总是遇到这个错误

  

转发新会话时出错无法找到:功能[{platform = ANY,browserName = firefox,applicationName = qa-user,version =}]

之前,节点上的所有浏览器都是这样的。我不知道我是否错过了节点VM Win10上的一些设置。

1 个答案:

答案 0 :(得分:0)

您是否尝试过直接在班级中指定IEDriver路径的测试?

就我的VM Win10而言,我个人使用:

 java -jar selenium-server-standalone-2.53.0.jar -role hub -port 4444 -host x.x.x.x

Java类:

 System.setProperty("webdriver.ie.driver", "C:\\Users\\IEUser\\Desktop\\selenium-grid\\IEDriverServer.exe");
  

转发新会话时出错无法找到:功能[{platform = ANY,browserName = firefox,applicationName = qa-user,version =}]

此错误表明您尝试使用Grid不知道的功能创建新的浏览器会话。