Feb 04 2020 12:46 AM
WebDriverManager.EdgeDriver().setup();
EdgeOptions options = new EdgeOptions();
edgeOptions.AddAdditionalCapability("dom.webnotifications.enabled",1);
edgeOptions.AddAdditionalCapability("permissions.default.microphone", 1);
edgeOptions.AddAdditionalCapability("permissions.default.camera", 1);
driver = new EdgeDriver(options);
But above code is not working
Plz give solution to auto allow mic/camera using selenium automation
Feb 05 2020 03:36 AM
the solution i s only for C# code bcz im working on VS plz give solution ASAP@Madhusudan26
Feb 05 2020 02:27 PM
@Madhusudan26 have you ever seen this work with other webdriver versions (like with the old Edge, Firefox, or Chrome)? When I look, it does not look like this should work, so I'm curious about that.
-John
Feb 05 2020 08:01 PM
@johnjansenFor C# code in visual studio
For the chrome below things are working and not shown micro phone allow notification by using below code
ChromeOptions CHoptions = new ChromeOptions();
CHoptions.AddArguments("use-fake-ui-for-media-stream");
CHoptions.AddArguments("use-fake-device-for-media-stream");
driver = new ChromeDriver(CHoptions);
But in new Microsoft edge chromium version 79 & 80, i'm using but not find any solution on to allow microphone notification
Feb 12 2020 08:53 PM
Mar 27 2020 10:17 PM - edited Mar 27 2020 10:22 PM
Hello John
please give the solution of above comment.
And tell me its issue or bug in Microsoft edge
Mar 30 2020 09:24 AM
@Madhusudan26 if those ChromeOptions work with Chrome, then they should work with Edge. You do need to be either running Selenium 4 alpha 5 OR if you're still on Selenium 3, we published a new nuget package that can help with that.
https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium
https://github.com/microsoft/edge-selenium-tools
If it doesn't work for you, please include the code you are writing to make it work in Edge.
-John