“An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll” error coming up

醉酒当歌 提交于 2019-12-02 09:25:30

That exception means that your Selenium Grid doesn't have any node available with a browser that has the desired capabilities.

If you're running Selenium Grid as a hub on your machine (-role hub) make sure that at least one node which provides the desired browser is connected to that hub. Check out http://localhost:4444/grid/console to see whether any nodes are connected to your hub.

Also, you could just run the standalone server as a hub and a node together by starting it without specifying a role: java -jar selenium-server-standalone-3.0.1.jar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!