0
votes

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'

1
Welcome to stackoverflow. Take a tour and get your first badge-stackoverflow.com/tourHemant

1 Answers

0
votes

Hope so you are doing great and you are safe. The problem is the webdriver path is incorrect. I believe that you have missed to method drive i.e C: in your web driver path.

If you are new and do not know how to configure the selenium grid in the local system then you can use the below utility for the automatic configuration. https://github.com/frostyaxe/Talongrid