Browser opens with the below mentioned line-
You are using an unsupported command-line flag: --ignore-certifcate-errors. Stability and security will s
For a chrome version of 58.0.3029.110
, You should use Chrome.driver of 2.28 version
. Download driver from http://chromedriver.storage.googleapis.com/index.html?path=2.28/
Note: If you want to download other chromedriver of other version
then change version number
in the above url.
Happy learning
You can add this to the shortcut of the chrome browser, in the Target portion:
–test-type
This would disable any warning messages. Not the best solution, but it works.
I was able to fix this on Windows by opening the properties of the Chrome shortcut. There I deleted the --ignore-certificate-errors
flag.
Try this code when you create driver. I hope it will help:
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
setDefaultCapabilities(capabilities);
capabilities.setCapability("chrome.switches", Arrays.asList("--ignore-certificate-errors"));
options.addArguments(Arrays.asList("allow-running-insecure-content", "ignore-certificate-errors"));
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
Use chromedriver 2.12 version (chromedriver_win32.zip) from the path http://chromedriver.storage.googleapis.com/index.html?path=2.12/
You wont see this pop up.
I had this issue recently. I found out I was using a 32-bit chromedriver for a 64-bit Mac. So I simply replaced the chromedriver with a 64-bit chromedriver from https://chromedriver.storage.googleapis.com/index.html?path=2.25/ and the error was gone.