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

前端 未结 1 1081
北荒
北荒 2021-01-28 23:30

I am running a simple code to launch the Firefox browser. Running it in Visual Studio. Below is the code:

IWebDriver driver3 = new RemoteWebDriver(
          new         


        
相关标签:
1条回答
  • 2021-01-29 00:18

    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

    0 讨论(0)
提交回复
热议问题