I am running a Selenium GRID on one of my corporate VM's and a Node on another. When I launch my Node, it registers to the GRID (both the Node and the GRID confirm this), but then when I run my tests, I get the following error:
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new > session. Possible causes are invalid address of the remote server or browser > start-up failure.
If I fire up a node on the same VM with the GRID, and register it using localhost, then the tests run fine. I tried opening ports 4444 (GRID), and 5566 (Node) on both machines in windows firewall, but still no luck. Is it just my companies network policy? Is there something else I can try? Thanks!
Here is what I am using to launch my GRID:
java -jar "selenium-server-standalone-2.48.2.jar" -role hub -maxSession 10
Here is what I am using to launch my Node:
java -jar selenium-server-standalone-2.48.2.jar -role webdriver -Dwebdriver.ie.driver="C:\SeleniumDrivers\IEDriverServer.exe" -hub http://XX.XX.XX.XX:4444/grid/register -port 5566 -browser browserName="internet explorer",version=9.0,maxInstances=1,platform=WINDOWS -browser browserName="internet explorer",version=10.0,maxInstances=1,platform=WINDOWS -browser browserName="internet explorer",version=11.0,maxInstances=1,platform=WINDOWS -maxSession 1
Turns out this was an issue with my corporate firewall policy. By accessing the firewall settings on each node, I was able to look at the list of active firewall rules/policies. From there, I found a few instances of java on some unexpected ports, that said they were being blocked. I allowed those, and bingo, it all started working.