You are using an unsupported command-line flag: --ignore-certificate-errors

2,410 views
Skip to first unread message

Austin France

unread,
May 23, 2014, 5:38:33 AM5/23/14
to seleniu...@googlegroups.com
Well, my tests have started failing in chrome 35 because they measure element sizes and positions which is now being messed up because chrome now insists on putting up this warning.

I can't see where this option is being set. the only thing that matches in my project is the chromedriver binary.

I need to either:-

- be able to unset this option when starting chrome
- be able to dismiss the warning programatically before I continue with my tests
- add another flag that will suppress the warning

Looking for some pointers / suggestions on where to start looking.

Thanks


Vasty Jay

unread,
May 28, 2014, 11:18:01 AM5/28/14
to seleniu...@googlegroups.com
I'm getting this same issue with chrome 35 as well.
if I access the same website manually using chrome on my local machine this warning does not appear.
however if  I launch the website using chrome via RemoteWebdriver, (node on the same local machine) then the  warning appears.
The website is an "https" website.
I can't see where this option is being set.
I don't have any command line switches in my DesiredCapabilities configuration for Chrome.
Any pointer will be welcome.

Vasty

Krishnan Mahadevan

unread,
May 29, 2014, 12:17:49 AM5/29/14
to seleniu...@googlegroups.com
How does your DesiredCapabilities instantiation look like ?
What version of WebDriver are you using ?
I think WebDriver is automatically doing this behind the scenes. Are you sure you are also on the latest version of the ChromeDriver binary ?

It would be good if you could please help add a bit more contextual information around the problem.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/66c2ff4c-bcf9-4b4b-bee6-3d6cf9ad2ae4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rajendraprasad reddy

unread,
May 29, 2014, 1:00:05 AM5/29/14
to seleniu...@googlegroups.com
Hi All,
Even i am facing the similar error when try to luanch with chome with some swictches:
here i am describing my problem:

I am trying to automate a WebRTC (Real Time Communication) Application ,designed on HTML5 and it runs on Chrome browser .
In this application i need to access and capture the input from the Microphone or Camera from web application.

When i click on capture button, chrome is showing info bar(a kind of popup alert) with “allow” and “deny” options., Since this info bar i cannot handle with Selenium web driver.

After doing some research i came to know that, If i manually launch chrome browser from command line with a switch “–use-fake-ui-for-media-stream” chrome is allowing to access the camera without info bar.

Example: C:\Users\user>start chrome –use-fake-ui-for-media-stream

 

But if try the same with simple web driver script i am still getting the info bar with same allow and deny options how to suppress this info bar as it worked manual chrome browser launch from command line? :
here is my code:

import java.io.IOException;
import java.net.URL;
import java.util.Arrays;
import org.openqa.selenium.By;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
public class UseChromeSwitch {
public static void main(String[] args) throws IOException {
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability(“chrome.switches”,Arrays.asList(“use-fake-ui-for-media-stream”));;
RemoteWebDriver driver1 = new RemoteWebDriver(new URL(“http://127.0.0.1:4444/wd/hub”), capabilities);
driver1.get(“http://www.html5rocks.com/en/tutorials/getusermedia/intro/”);
driver1.findElement(By.id(“capture-button”)).click();
}
}

Note Before running above code you need to run the from command line:
java -Dwebdriver.chrome.driver=”C:\chromedriver.exe” -jar “C:\selenium-server-standalone-2.41.0.jar”

Note: Please try this on laptop which has built-in camera otherwise you cannot access the camera.

Thanks,
Rajendra

Krishnan Mahadevan

unread,
May 30, 2014, 2:46:58 AM5/30/14
to Selenium Users
So this definitely looks like a problem with the chromedriver binary. When I enabled logs and ran a simple test, I noticed the following:


0.566][INFO]: Launching chrome: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --disable-background-networking --disable-client-side-phishing-detection --disable-component-update --disable-default-apps --disable-hang-monitor --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-logging --ignore-certificate-errors --load-extension=/var/folders/z0/c631_ql16cbbjcq975xc2fch38xdjj/T/.org.chromium.Chromium.eCTDf9/internal --logging-level=1 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12750 --safebrowsing-disable-auto-update --safebrowsing-disable-download-protection --use-mock-keychain --user-data-dir=/var/folders/z0/c

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/


Harmin PARRA RUEDA

unread,
Jan 8, 2017, 10:47:38 AM1/8/17
to Selenium Users
I see that this issue dates backs to 2014 and still I have a hard time to find a satisfactory solution in different forums.

Does anybody knows how to get run chrome with selenium 3 ?

I am getting the error You are using an unsupported command-line flag: --ignore-certificate-errors

I have tried this piece of code withour success

ChromeOptions chrome = new ChromeOptions();
chrome.addArguments("test-type");
capabilities.setCapability(ChromeOptions.CAPABILITY, chrome);
WebDriver driver = new ChromeDriver(chrome);

Thanks
Reply all
Reply to author
Forward
0 new messages