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

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


You can use the following preferences to allow camera, microphone in Edge Browser.

WebDriverManager.edgedriver().setup();EdgeOptions options = new EdgeOptions();options.setCapability("dom.webnotifications.enabled", 1);options.setCapability("permissions.default.microphone", 1);options.setCapability("permissions.default.camera", 1);driver = new EdgeDriver(options);