title: WebDriver switchTo().alert() function fails
body: <p>Have this line in my html:</p>
  
  <pre><code>&lt;a class="btn" onclick="return confirm('Are you sure you want to delete this post?')" href="#"&gt;
  </code></pre>
  
  <p>Try to switch to the pop-up window and click OK by using</p>
  
  <pre><code>driver.switchTo().alert().accept()
  </code></pre>
  
  <p>but it keeps giving me AttributeError: 'WebDriver' object has no attribute 'switchTo'. I also try to locate the element ID of the buttons of the pop-up window but I could not make it work. Any suggestions will be appreciated.</p>