Selenium grid - unreachable browser exception | Selenium Forum
M
Posted on 04/02/2017
firefox is not getting launch by using grid
where as chrome is working perfectly fine
with same code.
i m using selenium server standalone 3.0.1 jar with firefox version 49.0.1

M
Replied on 05/02/2017

are you setting the path of geckodriver.exe?


M
Replied on 08/02/2017

yes sir ,,,
this is my code

Responsive image

M
Replied on 08/02/2017

this code works fine without grid


M
Replied on 08/02/2017

what is the selenium version you're using?

Grid 3 configurations are different from grid 2.


M
Replied on 27/02/2017

Hi,

Can anyone please let me know if invoking Firefox in grid issue is resolved with selenium 3.0.1

Selenium 3.0.1 with latest chrome driver is working for google chrome with grid but having issue with Firefox "unable to create new remote session".

This is to create a a hub:
java -jar /drivers/jars/selenium-server-standalone-3.0.1.jar -role hub -hubConfig /drivers/grid/hub.json

and the node:
Dwebdriver.chrome.driver=/drivers/chromedriver.exe -jar /drivers/jars/selenium-server-standalone-3.0.1.jar -role node -nodeConfig /drivers/grid/node1.json

//for chrome
DesiredCapabilities capabilities = DesiredCapabilities.chrome();

capabilities.setBrowserName("chrome");

capabilities.setPlatform(org.openqa.selenium.Platform.MAC);

webDriver= new new RemoteWebDriver(new URL(props.getProperty("grid.hub")), capabilities));



}


//for firefox

System.setProperty(TestConstants.GECKO_WEB_DRIVER, getDriverBinary(TestConstants.FIREFOX));

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setBrowserName("firefox");

capabilities.setPlatform(org.openqa.selenium.Platform.MAC);

webDriver= new RemoteWebDriver(new URL(props.getProperty("grid.hub")), capabilities));



}

node.json is slightly different in 3.0.1 and is working fine for chrome

Thanks,

Rezaul