Java 使用chrome 90和chrome driver 90在windows 10中运行时,只允许使用selenium本地连接

Java 使用chrome 90和chrome driver 90在windows 10中运行时,只允许使用selenium本地连接,java,selenium-webdriver,selenium-chromedriver,Java,Selenium Webdriver,Selenium Chromedriver,我在Windows 10上使用最新的Google chrome:Version 90.0.4430.93(官方版本)(64位)使用webdriver时遇到问题 我的代码包括以下内容: private static final String USER_AGENT = "user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) " + "AppleWebKit/537.36

我在Windows 10上使用最新的Google chrome:Version 90.0.4430.93(官方版本)(64位)使用webdriver时遇到问题

我的代码包括以下内容:

 private static final String USER_AGENT =
            "user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
            + "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36";
我已经设置了默认的chrome驱动程序,如下所示:

System.setProperty("webdriver.chrome.driver", "C:/DRIVERS/chrome90/chromedriver.exe");
这里是我的selenium依赖项:

<dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-java</artifactId>
      <version>3.141.59</version>
    </dependency>
如何修复此错误

Extracting 100 HANDPHONE product(s)...
Starting ChromeDriver 90.0.4430.24 (4c6d850f087da467d926e8eddb76550aed655991-refs/branch-heads/4430@{#429}) on port 36143
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Failed. Please try again