How to enable 'Mircophone' access in Edge browser using Selenium?

Occasional Contributor

EdgeOptions options = new EdgeOptions();
edgeOptions.AddAdditionalCapability("permissions.default.microphone", 1);
edgeOptions.AddAdditionalCapability("", 1);
driver = new EdgeDriver(options);


But above code is not working

Plz give solution to auto allow mic/camera using selenium automation

6 Replies

the solution i s only for C# code bcz im working on VS plz give solution ASAP@Madhusudan26 

@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.



@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();
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

Plz let give solution to any one on the above query ASAP.

Hello John
please give the solution of above comment.
And tell me its issue or bug in Microsoft edge

@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.


If it doesn't work for you, please include the code you are writing to make it work in Edge.