The new Google chrome update causes this message in the browser \"You are using an unsupported command-line flag: --ignore-certificate-errors. Stability and security will su
I was fighting the same problem, and I finally cracked it. Basically, you can add ChromeOptions
to DesiredCapabilities
then create the driver with the DesiredCapabilities
. Once I tried it, it got rid of the banner. Anyway, here is the code:
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("test-type");
capabilities.setCapability("chrome.binary", "");
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
webDriver = new ChromeDriver(capabilities);