title: Handling Alert in webdriver 2.21and mozilla11
body: <p>I am using Firefox 11 + WebDriver 2.21.0 / WebDriver 2.22.0 (tried both).</p>
  
  <p>In my scenario, when I click on a tab, it opens a confirmation box and on clicking <code>OK</code> it starts loading the new tab from server.</p>
  
  <p>So I'm handling this scenario as:</p>
  
  <pre><code>driver.findElement(By.id("myTab")).click();
  driver.switchTo().alert().accept();
  </code></pre>
  
  <p>but after it clicks on "mytab", it waits for window to load indefinitely. So it is not coming on <code>alert.accept()</code> and browser waits to accept the confirmation dialog to load the new page, so I end up in a deadlock condition.</p>
  
  <p>This code works well in Internet Explorer.</p>
  
  <p>Please help, how to deal the situation?</p>