Quantcast

Microphone Access with Selenium

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Microphone Access with Selenium

bkobs
Hi, I'm trying to use Selenium to drive a website that needs access to the microphone/camera to make a phone call.  I'm currently using Python's Selenium API (http://selenium-python.readthedocs.org/en/latest/api.html) to drive the test, since all the other automation is already written in Python.  The test I'm currently working on is using the Firefox Browser.  I'm able to navigate through the page and make the phone call, but at the point where the call is to be connected, the Firefox browser prompts the user for access to the microphone/camera.  I haven't been able to figure out how to click the 'Share Selected Device' dropdown.  I try and 'Inspect Element' with Firefox by right clicking on the element on the webpage, but that does not work with this Microphone/Camera display.  I've verified it is not an alert and I also tried issuing a send_keys with the appropriate commands to click the button (Tab, Tab, Tab, Space), but this is not working when done with selenium.

Any ideas?  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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3bc0695d-8cdb-4e5f-9bcf-5fa2c32dd144%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Microphone Access with Selenium

David
Do you know how this camera/mic functionality is offered on the site? I'm guessing it is likely a Flash, Silverlight, or Java plugin. There's nothing for HTML5/native web that offers that I believe.

And as such, you likely won't be able to deal with it with Selenium alone, especially if the plugin code for that is not yours (e.g. you can't instrument the plugin to allow API scripting against it).

Your last resort workaround is to combine Selenium with tools like Sikuli and/or AutoIt, which could handle manipulating the plugin. But the caveat to that, is integrating such tools, you can't really deploy in a Selenium Grid or parallel testing fashion w/o knowing specifically which node to execute the test on because Sikuli/AutoIt are not "grid" enabled unlike Selenium.

On Thursday, October 10, 2013 7:13:28 AM UTC-7, [hidden email] wrote:
Hi, I'm trying to use Selenium to drive a website that needs access to the microphone/camera to make a phone call.  I'm currently using Python's Selenium API (http://selenium-python.readthedocs.org/en/latest/api.html) to drive the test, since all the other automation is already written in Python.  The test I'm currently working on is using the Firefox Browser.  I'm able to navigate through the page and make the phone call, but at the point where the call is to be connected, the Firefox browser prompts the user for access to the microphone/camera.  I haven't been able to figure out how to click the 'Share Selected Device' dropdown.  I try and 'Inspect Element' with Firefox by right clicking on the element on the webpage, but that does not work with this Microphone/Camera display.  I've verified it is not an alert and I also tried issuing a send_keys with the appropriate commands to click the button (Tab, Tab, Tab, Space), but this is not working when done with selenium.

Any ideas?  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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d19b074b-2d67-4455-afea-51aaf86e8875%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...