Reputation: 1
Is it possible to run the hub and nodes in Selenium Grid through Java/Selenium code? In an example provided by @Boni Garcia, there is GridLauncherV3
but this is not working with Selenium-jupiter version 3.2.1. Can you please help?
// Start hub
GridLauncherV3.main(new String[] { "-role", "hub", "-port", "4444" });
// Register Chrome in hub
WebDriverManager.chromedriver().setup();
GridLauncherV3.main(new String[] { "-role", "node", "-hub",
"http://localhost:4444/grid/register", "-browser",
"browserName=chrome", "-port", "5555" });
'''
Upvotes: 0
Views: 460
Reputation: 4878
This example is working at the time of this writing, I have just double checked. Just notice it is disabled, an so you need to remove the @Disabled
annotation to execute it.
Upvotes: 1