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

后端 未结 8 1111
别那么骄傲
别那么骄傲 2020-12-09 16:59

Browser opens with the below mentioned line-

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

相关标签:
8条回答
  • 2020-12-09 17:18

    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

    0 讨论(0)
  • 2020-12-09 17:22

    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.

    0 讨论(0)
  • 2020-12-09 17:23

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

    0 讨论(0)
  • 2020-12-09 17:26

    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);
    
    0 讨论(0)
  • 2020-12-09 17:26

    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.

    0 讨论(0)
  • 2020-12-09 17:39

    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.

    0 讨论(0)
提交回复
热议问题