How can I disable the microphone permissions popup in Firefox with Selenium WebDriver?

Can I disable the microphone permissions popup in Firefox with Selenium WebDriver?

Hi Ian,

You could try the below syntax:

FirefoxOptions options = new FirefoxOptions();
options.addArguments("use-fake-ui-for-media-stream");

or

from selenium import webdriver
from selenium.webdriver.firefox.options import Options

options = Options()
options.set_preference("media.navigator.permission.disabled", True)
browser = webdriver.Firefox(options=options)