Cannot reach node on virtual machine using Selenium Grid Cannot reach node on virtual machine using Selenium Grid selenium selenium

Cannot reach node on virtual machine using Selenium Grid


I found a solution. VM (VirtualBox in my case) should be configured the following way:

Go to Settings -> Network
1. Attached to should be 'Bridged Adapter'
2. Expand 'Advanced' -> Promiscuous mode should be 'Allow All'enter image description here


You are starting your RemoteWebDriver with wrong URL, you should give it hub IP to register on, not node IP.

WebDriver driver = new RemoteWebDriver(new URL("http://172.xx.xxx.248:4444/wd/hub"), capabilities);

This should solve your issue.