title: How to automatically accept Alerts with Appium -- permissions Android 6.0
body: <p>Environment:</p>
  <ul>
  <li>OS Windows 7</li>
  <li>Appium 1.4.16.1</li>
  <li>Android emulator 6.0</li>
  </ul>
  <p>I need to accept any permission alerts(Android 6.0 -- sms,location and etc) automatically.</p>
  <p>What I tried:</p>
  <ol>
  <li><p>Use <code>driver.switchTo().alert().accept();</code></p>
  <p>Result:</p>
  <p><code>org.openqa.selenium.WebDriverException: Not yet implemented. Please help us: http://appium.io/get-involved.html</code></p>
  </li>
  <li><p>Set <code>capabilities</code>:</p>
  <p><code>capabilities.setCapability(&quot;autoGrantPermissions&quot;, &quot;true&quot;);</code>
  <code>capabilities.setCapability(&quot;autoAcceptAlerts&quot;, &quot;true&quot;);</code></p>
  <p>Result: it doesn't work</p>
  </li>
  </ol>