Discussion:
You are using an unsupported command-line flag: --ignore-certificate-errors
Austin France
2014-05-23 09:38:33 UTC
Permalink
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
--
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-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e6038655-026e-4bea-af94-bc96299be80b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Vasty Jay
2014-05-28 15:17:59 UTC
Permalink
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
Post by Austin France
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
--
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-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
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.
Krishnan Mahadevan
2014-05-29 04:17:26 UTC
Permalink
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 Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

From: Vasty Jay <valmondw-***@public.gmane.org>
Reply-To: <selenium-users-/***@public.gmane.org>
Date: Wednesday, 28 May 2014 8:47 pm
To: <selenium-users-/***@public.gmane.org>
Subject: [selenium-users] Re: You are using an unsupported command-line
flag: --ignore-certificate-errors

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
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
--
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-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/66c2ff4c-bcf9-4b4b-bee6-3d6
cf9ad2ae4%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/66c2ff4c-bcf9-4b4b-bee6-3d
6cf9ad2ae4%40googlegroups.com?utm_medium=email&utm_source=footer> .
For more options, visit https://groups.google.com/d/optout.
--
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-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CFACB254.20462%25krishnan.mahadevan1978%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
rajendraprasad reddy
2014-05-29 05:00:05 UTC
Permalink
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 <http://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
Post by Krishnan Mahadevan
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!"
Date: Wednesday, 28 May 2014 8:47 pm
Subject: [selenium-users] Re: You are using an unsupported command-line
flag: --ignore-certificate-errors
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
Post by Austin France
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
--
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
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/66c2ff4c-bcf9-4b4b-bee6-3d6cf9ad2ae4%40googlegroups.com<https://groups.google.com/d/msgid/selenium-users/66c2ff4c-bcf9-4b4b-bee6-3d6cf9ad2ae4%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6f72731c-ea9d-44b8-82c5-78e79e329437%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Krishnan Mahadevan
2014-05-30 06:46:46 UTC
Permalink
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/


On Thu, May 29, 2014 at 10:30 AM, rajendraprasad reddy <
Post by rajendraprasad reddy
Hi All,
Even i am facing the similar error when try to luanch with chome with some
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
import java.io.IOException;
import java.net.URL;
import java.util.Arrays;
import org.openqa.selenium.By <http://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();
}
}
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
Post by Krishnan Mahadevan
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!"
Date: Wednesday, 28 May 2014 8:47 pm
Subject: [selenium-users] Re: You are using an unsupported command-line
flag: --ignore-certificate-errors
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
Post by Austin France
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
--
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
To view this discussion on the web visit https://groups.google.com/d/
msgid/selenium-users/66c2ff4c-bcf9-4b4b-bee6-3d6cf9ad2ae4%
40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/66c2ff4c-bcf9-4b4b-bee6-3d6cf9ad2ae4%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/6f72731c-ea9d-44b8-82c5-78e79e329437%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/6f72731c-ea9d-44b8-82c5-78e79e329437%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZL%3DuSUesPKYx65TF4vKhb2AruTtWS5yQxjSosFHjrvv2eA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Harmin PARRA RUEDA
2017-01-08 15:47:38 UTC
Permalink
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
--
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-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fcafb6de-eef1-46ea-be27-5a40ced32749%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...