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

The browser opens with the line below -

An unsupported command line flag is used: -ignore-certifcate-errors. Stability and security will suffer.

and also after a few seconds close the browser and issue an error.

I ran into the above error when I run my code on chrome.

I use the chrome version - 44.0.2403.155 and the latest selenium wipes.

Can anybody help me?

+15
source share
8 answers

For the chrome version 58.0.3029.110 you should use Chrome.driver from 2.28 version . then you will not get the error "You are using an unsupported command-line flag: --ignore-certifcate-errors. Stability and security will suffer."

I struggled to solve this problem and finally found a solution. To solve the problem with chrome v58, download driver from here: http://chromedriver.storage.googleapis.com/index.html?path=2.28/ If you want to download other chromedriver versions , then change the version number at the above address , you will get the driver you need. good luck.

+8
source

You can add this to your Chrome browser shortcut, in the target part:

 –test-type 

This will disable any warning messages. Not the best solution, but it works.

+7
source

I have had this problem recently. I found out that I used a 32-bit chrome recorder for a 64-bit Mac. So I just replaced the chrome recorder with a 64-bit chrome recorder from https://chromedriver.storage.googleapis.com/index.html?path=2.25/ and the error went away.

+2
source

I was able to fix this on Windows by opening the properties of the Chrome shortcut. There I removed the flag --ignore-certificate-errors .

+1
source

Try using this code when creating the driver. Hope this helps:

 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); 
0
source

Use version chromedriver 2.12 (chromedriver_win32.zip) from the path http://chromedriver.storage.googleapis.com/index.html?path=2.12/

You will not see how this pops up.

0
source

If your browser in the latest version will try with the latest chrome driver. I have the same problem, but when it changed to the last driver, and it worked.

0
source

I think this is due to the incompatibility of the Chrome driver with the Chrome browser. 1. Remove the chrome driver. 2. Check the version of the Chrome browser you are using. 3. Find the appropriate compatible Chrome driver (compatible with the browser version) and install it. Remember to reboot the system after step 1 and step 3. I think this should fix the problem. It worked for me.

0
source

All Articles