Safaridriver launch Safari browser can not select physical audio/ video device

Requirement :

Safaridriver provide option to disable Use Mock Capture Devices when use webdriver.

Problem :

In Mac OS, when use Safaridriver open a Safari browser for WebRTC samples, the audio input source only display Mock device (audio: Mock audio device 1/ Mock audio device 2 , video: Mock video device 1/ Mock video device 2) but not display Mac OS physical audio/video device .

From safaridriver readMe, seems no configure can set Use Mock Capture Devices , because WebDrier test not support live media capture "For security reasons, Safari does not permit live media capture during a WebDriver test session. Instead, mock capture devices and streams with well-known contents are provided for testing purposes. " (In Mac OS, cd/Library/Apple/System/Library/CoreServices/SafariSupport.bundle/Contents/MacOS , man safaridriver)

 From safaridriver debug log, safaridriver not provide any configure for disable Mock device.

Reference : WebRTC samples link: https://webrtc.github.io/samples/src/content/devices/input-output/

safaridriver debug logs: [safaridriver.82081.txt] (

)

Reproduce demo:

pom.xml dependency:
Safaridriver launch Safari browser can not select physical audio/ video device
 
 
Q