Selenium ChromeDriver无法分配请求的值

Selenium ChromeDriver无法分配请求的值,selenium,selenium-chromedriver,Selenium,Selenium Chromedriver,硒的铬载体最近已经停止了结合。我能够启动hub和chromedriver,但是一旦我开始运行测试,就会出现如下所示的错误。有人知道最近的ChromeDriver升级是否改变了什么吗?(Am使用3.141版本的selenium) 和驱动程序选项配置: public WebDriver getDriver() { AppContext.getEnv().setDriverPermissions(this); new DesiredCapabilities(); ChromeO

硒的铬载体最近已经停止了结合。我能够启动hub和chromedriver,但是一旦我开始运行测试,就会出现如下所示的错误。有人知道最近的ChromeDriver升级是否改变了什么吗?(Am使用3.141版本的selenium)

和驱动程序选项配置:

public WebDriver getDriver() {
    AppContext.getEnv().setDriverPermissions(this);
    new DesiredCapabilities();
    ChromeOptions ops = new ChromeOptions();
    ops.addArguments("--incognito");
    ops.addArguments("--window-size=1920,1080");
    ops.addArguments("--disable-notifications");
    ops.addArguments("--allow-running-insecure-content");
    ops.addArguments("--start-maximized");
    ops.addArguments("--whitelisted-ips");
    //ops.addArguments("--headless");
    System.setProperty("webdriver.chrome.driver", AppContext.getEnv().getDriverPath(this));
    return new ChromeDriver(ops);

这回答了你的问题吗?不,我试过了,但没用
public WebDriver getDriver() {
    AppContext.getEnv().setDriverPermissions(this);
    new DesiredCapabilities();
    ChromeOptions ops = new ChromeOptions();
    ops.addArguments("--incognito");
    ops.addArguments("--window-size=1920,1080");
    ops.addArguments("--disable-notifications");
    ops.addArguments("--allow-running-insecure-content");
    ops.addArguments("--start-maximized");
    ops.addArguments("--whitelisted-ips");
    //ops.addArguments("--headless");
    System.setProperty("webdriver.chrome.driver", AppContext.getEnv().getDriverPath(this));
    return new ChromeDriver(ops);