“线程中的异常”;“主要”;org.openqa.selenium.SessionNotCreatedException:无法创建新服务:ChromeDriverService

“线程中的异常”;“主要”;org.openqa.selenium.SessionNotCreatedException:无法创建新服务:ChromeDriverService,selenium,automation,selenium-grid,Selenium,Automation,Selenium Grid,我在第一次运行Selenium grid时遇到此错误: 线程“main”中出现异常 org.openqa.selenium.SessionNotCreatedException:无法创建新的 服务:ChromeDriverService 请帮助和建议 代码如下: WebDriver driver; ChromeOptions options = new ChromeOptions(); String URL = "http://www.google.com"; String Node = "ht

我在第一次运行Selenium grid时遇到此错误:

线程“main”中出现异常 org.openqa.selenium.SessionNotCreatedException:无法创建新的 服务:ChromeDriverService

请帮助和建议

代码如下:

WebDriver driver;
ChromeOptions options = new ChromeOptions();
String URL = "http://www.google.com";
String Node = "http://192.168.22.139:5555/wd/hub";
System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe");
DesiredCapabilities cap = DesiredCapabilities.chrome();
cap.setCapability(ChromeOptions.CAPABILITY,options);
cap.setPlatform(org.openqa.selenium.Platform.HIGH_SIERRA);
WebDriver remoteWebDriver = new RemoteWebDriver(new URL(Node),cap);
remoteWebDriver.get(URL);
Thread.sleep(5000);
remoteWebDriver.quit();
}       

什么是浏览器和ChromeDriver版本。这通常是由于二进制文件不匹配造成的。浏览器和ChromeDriver的版本是什么。这通常是由于二进制文件不匹配造成的。