title: How do I allow Chrome to use my microphone programmatically?
body: <p>I am currently trying to run some tests made with webdriverjs and chromedriver but they need microphone permissions.</p>
  
  <p>This is the popup that shows up:</p>
  
  <p><a href="https://i.stack.imgur.com/AYx67.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AYx67.png" alt="popup image"></a></p>
  
  <p>I have tried:</p>
  
  <pre><code>    chromedriver.start(['--disable-popup-blocking']);
      driver = new Webdriver.Builder()
      .withCapabilities(Webdriver.Capabilities.chrome())
      .build();
  </code></pre>
  
  <p>but it didn't work.</p>
  
  <p>I also tried</p>
  
  <pre><code>    driver.wait(Until.alertIsPresent(), config.TIMEOUT, 'Alert did not show up');
      driver.switchTo().alert().accept();
  </code></pre>
  
  <p>it did not work either! I guess that this is not an ordinary alert.</p>
  
  <p>Useful links:</p>
  
  <p><a href="http://peter.sh/experiments/chromium-command-line-switches/" rel="noreferrer">Chrome startup arguments list</a></p>
  
  <p><a href="https://sites.google.com/a/chromium.org/chromedriver/capabilities" rel="noreferrer">Chrome options for java and ruby</a></p>
  
  <p><a href="https://github.com/giggio/node-chromedriver" rel="noreferrer">Chromedriver github</a></p>
  
  <p><strong>How do I give them permissions programmatically?</strong></p>
  
  <p><strong>Is there any flag or some other way around this?</strong></p>