Following is my code -
DesiredCapabilities capability = DesiredCapabilities.firefox();
capability.setBrowserName("firefox");
capability.setPlatform(Platform.VISTA);
driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), capability);
driver.manage().window().maximize();
driver.get(url);
I want to execute my script on 3 different nodes
For starting HUB I am using the command :- java -jar selenium-server-standalone-2.53.0.jar -role hub -port 4444
and for nodes
Node 1 :- java -jar selenium-server-standalone-2.53.0.jar -role webdriver -hub http://192.168.1.118:4444/grid/register -port 5556
Node 2 :- java -jar selenium-server-standalone-2.53.0.jar -role webdriver -hub http://192.168.1.118:4444/grid/register -port 5557
Node 3 :- java -jar selenium-server-standalone-2.53.0.jar -role webdriver -hub http://192.168.1.118:4444/grid/register -port 5558
All 3 nodes are on 3 different machines So my question is do i need to mention all 3 nodes ip address in my code or is there any way to execute script parallely on all 3 machines ?