Faking webRCT with firefox similar to chrome

229 views
Skip to first unread message

Stenver Jerkku

unread,
Apr 30, 2014, 2:00:36 AM4/30/14
to seleniu...@googlegroups.com
With chrome im able to open the browser with command line arguments to fake webRCT. This gives me the ability to test if the WebRCT is working correctly on our site.

Ie:
```
def include_chrome_driver
  capabilities = Selenium::WebDriver::Remote::Capabilities.chrome("chromeOptions" => {
    "args" =>
      ["--disable-user-media-security",
        "--use-fake-device-for-media-stream",
        "--use-fake-ui-for-media-stream"]
```

Is there any way to replicate this capability in firefox webdriver?

Thank you for your help

Afzal

unread,
May 1, 2014, 11:44:02 AM5/1/14
to seleniu...@googlegroups.com
 In Firefox you just have to go to about:config and set media.navigator.permission.disabled to true. This 
setting can be saved in a profile to use with Selenium. 

Stenver Jerkku

unread,
May 6, 2014, 1:27:43 AM5/6/14
to seleniu...@googlegroups.com
Thank you very much :)

I will give it a try
Reply all
Reply to author
Forward
0 new messages