I would like to automatically grant access to video and audio in Chrome via Chromedriver capabilities.
Based on this (pretty old) answer I tried the following:
I think it needs to be site specific, the following works for me: prefs.put("profile.content_settings.exceptions.media_stream_camera.'https://somewebsite.com:443,'.setting", "1"); prefs.put("profile.content_settings.exceptions.media_stream_mic.'https://somewebsite.com:443,'.setting", "1");
Also, I think the website needs to be in single quotes or it won't parse right.
Give that a shot.