I am facing a challenge while running tests using webdriverjs and chromedriver as they require microphone permissions.
Here is the popup that keeps appearing:
https://i.sstatic.net/AYx67.png
Attempts made so far:
chromedriver.start(['--disable-popup-blocking']);
driver = new Webdriver.Builder()
.withCapabilities(Webdriver.Capabilities.chrome())
.build();
Unfortunately, these attempts did not yield any positive results.
Another approach taken:
driver.wait(Until.alertIsPresent(), config.TIMEOUT, 'Alert did not show up');
driver.switchTo().alert().accept();
Surprisingly, this method also failed! It seems like this alert is not an ordinary one.
Resources worth checking out:
List of Chrome startup arguments
Chrome options for java and ruby
How can microphone permissions be granted programmatically?
Are there any flags or alternative solutions to this issue?