Unsupported Command-line Flag: --ignore-certificate-errors
Using Python 2.7.5, python module selenium (2.41.0) and chromedriver (2.9). When Chrome starts it displays a message in a yellow popup bar: 'You are using an unsupported command-li
Solution 1:
This extra code removes the --ignore-certificate-errors command-line flag for me. In my opinion the arguments that can be added to webdriver.Chrome() could (and should) be better documented somewhere, I found this solution in a comment on the chromedriver issues page (see post #25).
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches", ["ignore-certificate-errors"])
browser = webdriver.Chrome(chrome_options=options)
browser.get("http://google.com/")
Solution 2:
This issue is resolved as of Chromedriver 2.11 (released Oct 2014). Updating will now do the trick.
Solution 3:
you can use the following flag --test-type
var options = new ChromeOptions();
options.AddArguments(new[] {
"--start-maximized",
"allow-running-insecure-content",
"--test-type" });
returnnew ChromeDriver(options);
Solution 4:
This is what I'm currently using in Java to get around this issue but I don't know how Python works but worth a try anyway
ChromeOptions chrome = new ChromeOptions();
chrome.addArguments("test-type");
capabilities.setCapability(ChromeOptions.CAPABILITY, chrome);
capabilities.setCapability("chrome.binary",
"C:\\set path to driver here\\chromedriver.exe");
Solution 5:
options = webdriver.ChromeOptions()
options.add_argument('test-type')
chromedriver = 'resources/chromedriver.exe'os.environ["webdriver.chrome.driver"] = chromedriver
self.driver = webdriver.Chrome(chromedriver,chrome_options=options)
Post a Comment for "Unsupported Command-line Flag: --ignore-certificate-errors"