title: Clicking on a confirmation alert using Capybara and rspec
body: <p>In one of my views I have this link:</p>
  
  <p><code>link_to 'Destroy', team, :method =&gt; :delete, :data =&gt; { :confirm =&gt; 'Are you sure?' }</code></p>
  
  <p>In my rspec feature spec I want to simulate clicking on the "OK" button. I thought I could do this:</p>
  
  <pre><code>page.accept_alert 'Are you sure?' do
    click_button('OK')
  end
  </code></pre>
  
  <p>but that results in:</p>
  
  <pre><code>Failure/Error: page.accept_alert 'Are you sure?' do
   Capybara::NotSupportedByDriverError:
     Capybara::Driver::Base#accept_modal
  </code></pre>
  
  <p>What is the correct way to do this with rspec and capybara?</p>