Thats how I started : Hub command : java -jar selenium-server-standalone-3.141.59.jar -role hub Node Command : java -Dwebdriver.chrome.driver="\Users\rachitamittal\eclipse-workspace\firstjavaproject\drivers\chromedriver.exe" -jar selenium-server-standalone-3.141.59.jar -role node -port 5556 -hub "http://localhost:4444/wd/hub" -browser browserName=chrome,maxInstances=3 I have first only created a single node. MY program :
@Test
public void remotetester() throws MalformedURLException
{
DesiredCapabilities cap = DesiredCapabilities.chrome();
cap.setBrowserName("chrome");
cap.setPlatform(Platform.MAC);
RemoteWebDriver driver=new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"),cap);
driver.get("https://www.google.com/");
driver.manage().window().maximize();
driver.close();
}
Error : org.openqa.selenium.SessionNotCreatedException: Unable to create new service: ChromeDriverService
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '///////////', ip: '/////////////////', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.4', java.version: '14.0.1'