So this definitely looks like a problem with the chromedriver binary. When
--load-extension=/var/folders/z0/c631_ql16cbbjcq975xc2fch38xdjj/T/.org.chromium.Chromium.eCTDf9/internal
Post by rajendraprasad reddyHi 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 MahadevanHow 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 FranceWell, 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.