title: Using Capybara + Selenium, how do I select dialog box (confirm) options in the new Firefox 4?
body: <p>I have done a solid amount of research for this issue and have sadly found nothing useful in regards to Firefox 4.
  This option worked fine in 3.6:</p>
  
  <pre><code>a = page.driver.browser.switch_to.alert
  if a.text == 'OK'
    a.dismiss
  else
    a.accept
  end
  </code></pre>
  
  <p>Unfortunately, simply clicking on the "OK" manually when it pops up is not an option. I've tried the various JavaScript options for this, as well (where one essentially "tricks" the prompt by sending it values beforehand).</p>
  
  <p>Thank you for your time,</p>
  
  <p>-R</p>