title: javascript Confirmation Dialog in capybara webkit driver
body: <p>So I want to test a user deleting their account using capybara and rspec:</p>
  
  <pre><code>scenario "User wants to delete their account" do
    click_link "Account"
    click_link "Delete My Account"
    expect(page).to have_text("You're account was deleted.")
  end
  </code></pre>
  
  <p>Only problem is a js confirmation dialog appears when a user clicks 'delete my account'. To confirm this dialog I did the following: </p>
  
  <ol>
  <li>Install capybara-webkit</li>
  <li>add <code>Capybara.javascript_driver = :webkit</code> to my spec_helper.rb</li>
  <li>add <code>:js =&gt; true</code> to <code>scenario "User wants to delete their account" do</code>. </li>
  </ol>
  
  <p>Now nothing seems to work with the addition of <code>:js =&gt; true</code>. I am getting the error <code>Capybara::ElementNotFound: Unable to find link "Account"</code> and before it was working fine, does <code>js: true</code> interfere with these capybara methods? Is my config wrong?</p>