Selenium webdriver 如何解决';无法连接到渲染器';使用chrome v 74.0.3729.131和chromedriver 74.0.3729.6

Selenium webdriver 如何解决';无法连接到渲染器';使用chrome v 74.0.3729.131和chromedriver 74.0.3729.6,selenium-webdriver,selenium-chromedriver,selenium-grid,Selenium Webdriver,Selenium Chromedriver,Selenium Grid,我无法使用ChromeDriver 74.0.3729.6与最新Chrome版本74.0.3729.131建立连接 我收到的错误消息是: 下面是使用Chrome 73版和ChromeDriver 73.0.3683.68的代码: System.setProperty("webdriver.chrome.driver", "chromedriver"); ChromeOptions options = new ChromeOptions(); options.addExtensions(new F

我无法使用ChromeDriver 74.0.3729.6与最新Chrome版本74.0.3729.131建立连接

我收到的错误消息是:

下面是使用Chrome 73版和ChromeDriver 73.0.3683.68的代码:

System.setProperty("webdriver.chrome.driver", "chromedriver");
ChromeOptions options = new ChromeOptions();
options.addExtensions(new File (ExtensionPath));
options.addArguments("--start-maximized");
driver = new ChromeDriver(options);
还有谁有这个问题并找到了解决方案?
提前感谢。

我已使用此查询解决我的问题:

我打开并解锁了/private/etc/hosts文件,并添加了:127.0.0.1 localhost

然而,我不清楚为什么这突然成为一个问题

System.setProperty("webdriver.chrome.driver", "chromedriver");
ChromeOptions options = new ChromeOptions();
options.addExtensions(new File (ExtensionPath));
options.addArguments("--start-maximized");
driver = new ChromeDriver(options);