How to disable camera and microphone popup alert via Selenium WebDriver tests?
You need to use the "2" value for that.Code:
...prefs.put("profile.default_content_setting_values.media_stream_mic", 2);prefs.put("profile.default_content_setting_values.media_stream_camera", 2);...
PS: The value "1" is used for allowing the option, "2" -- for blocking.
I hope it helps you!