是否可以通过Java / Selenium代码在Selenium Grid中运行集线器和节点?在@Boni Garcia提供的示例中,有GridLauncherV3
,但不适用于Selenium-jupiter版本3.2.1。你能帮忙吗?
// 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" });
'''