Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getUserMedia() tests cannot be automated due to device selection dialog #5563

Closed
foolip opened this issue Apr 14, 2017 · 7 comments
Closed

Comments

@foolip
Copy link
Member

foolip commented Apr 14, 2017

In #5557 there was a tests that failed on both Chrome and Firefox:
https://github.com/w3c/web-platform-tests/blob/master/webrtc/simplecall.html

Both failed with "WebRTC called error callback for getUserMedia", which means that the failure callback for getUserMedia was invoked.

The cause is very likely related to the device selection dialog. Some WebDriver extension may be needed to either select a device or deny the request, so that all scenarios can be tested automatically.

@foolip
Copy link
Member Author

foolip commented Apr 14, 2017

The test itself says this:

To run this test, you must have a webcam and a microphone or use
fake devices by specifying
  --use-fake-device-for-media-stream --use-fake-ui-for-media-stream
for Chrome or by setting the
  media.navigator.streams.fake
property to true in Firefox.

What's missing, then, is some common way of doing this, and having wptrunner actually do it.

@jgraham, I guess this would be a good fit for a WebDriver extension?

@fippo
Copy link
Contributor

fippo commented Apr 14, 2017

see also adapter.js for more test flags (chrome's --mute-audio might be useful too but is not listed there oddly).
Note that we're having quite some trouble with Firefox and getUserMedia on travis since FF52 :-/

@foolip
Copy link
Member Author

foolip commented Apr 14, 2017

I filed https://crbug.com/711611 to track the slightly broader issue of WebRTC test automation in Chromium.

@fippo
Copy link
Contributor

fippo commented Apr 18, 2017

also note that Firefox on travis now requires pulseaudio (less changes here since you already require sudo)

@agouaillard
Copy link
Contributor

@jgraham, @foolip will ping you offline for the webdriver extension.

@leonhsl
Copy link

leonhsl commented Nov 24, 2017

It may be not proper, but anyway we need to make this issue be owned, so, set @jgraham as owner for the relationship with WebDriver extension.

@foolip
Copy link
Member Author

foolip commented Jan 24, 2018

I think this issue is a dupe of these two together:

Both assigned to kereliuk@, but the second is still blocked on having a WebDriver proposal. Will comment there instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants