Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Error: You are using an unsupported command-line flag: --ignore-certifcate-errors. Stability and security will suffer

Browser opens with the below mentioned line-

You are using an unsupported command-line flag: --ignore-certifcate-errors. Stability and security will suffer.

as well as after few second the browser close and the error is thrown.

I am facing the above error when i run my code on chrome.

I am using chrome version - 44.0.2403.155 and latest selenium jars.

Can anybody help me out?

like image 300
karshitbha Avatar asked Aug 17 '15 03:08

karshitbha


People also ask

How do I get rid of unsupported command line flag in Chrome?

If you are using Windows version, make sure the shortcut of Chrome leads to chrome.exe without any further command line parameters. Another solution could be going to chrome://flags inside Chrome. Look for "Extensions on chrome:// URLs" and disable it.


2 Answers

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.

like image 84
Pritam Banerjee Avatar answered Sep 28 '22 10:09

Pritam Banerjee


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

like image 22
Bandham Manikanta Avatar answered Sep 28 '22 10:09

Bandham Manikanta