Hi all,
I am working on the automation of WebRTC based application with Selenium. Now I intend to automate an application in which a browser shares the desktop and another N browsers consume that media by WebRTC.
The way to to share the desktop using Chrome is to use the --enable-usermedia-screen-capturing flag and HTTPS. With this configuration, the browser sharing the desktop opens a pop-up asking for share user confirmation, as follows:
Do you want https://<ip>:<port> to share your desktop?
No Yes
Is it possible to avoid this popup?
I need to override this behaviour since the confirmation dialogue forces the test to be manual (i.e., a user clicking the "Yes" button). I tried to use the Chrome flag which avoids the popup to grant the access to the cam media (i.e. --use-fake-ui-for-media-stream) in conjunction with --enable-usermedia-screen-capturing, but it is not working to share the desktop.
Any idea to make it?
Thanks in advance!