Open DGaffney opened 2 years ago
Hi @DGaffney ,
instead of using prefs
,
trying this
driver.execute_cdp_cmd(
"Browser.grantPermissions",
{
"origin": YOUR_URL, # e.g https://www.google.com
"permissions": ["geolocation", "audioCapture", "displayCapture", "videoCapture",
"videoCapturePanTiltZoom"]
},
)
this will allow permissions for geolocation, audio, video, and screen capture. but you will have to set the URL upfront.
That seems to work fine with https sites but not http sites - is that part of the spec for these types of permissions?
I'm looking to enable camera and mic by default in the preferences - and not getting too far. Tried to implement: https://stackoverflow.com/questions/48007699/how-to-allow-or-deny-notification-geo-location-microphone-camera-pop-up - and getting the following results after running this demo script:
Result:
Anyone have thoughts on how to fix this?