I am currently trying to run some tests made with webdriverjs and chromedriver but they need microphone permissions.
This is the popup that shows up:
I have tried:
chromedriver.start(['--disable-popup-blocking']);
driver = new Webdriver.Builder()
.withCapabilities(Webdriver.Capabilities.chrome())
.build();
but it didn't work.
I also tried
driver.wait(Until.alertIsPresent(), config.TIMEOUT, 'Alert did not show up');
driver.switchTo().alert().accept();
it did not work either! I guess that this is not an ordinary alert.
Useful links:
Chrome options for java and ruby
How do I give them permissions programmatically?
Is there any flag or some other way around this?
https:
pages you have to give permission only once. – Alex Kudryashevlocalhost
is considered as a secure domain though (for development purposes). – Adam Azad