Unsupported command-line flag: --ignore-certificate-errors

后端 未结 6 515
無奈伤痛
無奈伤痛 2020-12-29 08:51

Using Python 2.7.5, python module selenium (2.41.0) and chromedriver (2.9).

When Chrome starts it displays a message in a yellow popup bar: \"You are using an unsupp

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 09:31

    This is what I'm currently using in Java to get around this issue but I don't know how Python works but worth a try anyway

    ChromeOptions chrome = new ChromeOptions();
    chrome.addArguments("test-type");
            capabilities.setCapability(ChromeOptions.CAPABILITY, chrome);
            capabilities.setCapability("chrome.binary",
                    "C:\\set path to driver here\\chromedriver.exe");
    

提交回复
热议问题