title: Capybara failed to find position for element
body: <p>I'm using Capybara with a <code>webkit</code> driver and when I'm running tests with <code>js: true</code> it raises error listed below. When I do same things in other tests without <code>js: true</code> everything works fine. </p>
  
  <p>PS. There is no need for <code>js :true</code> in this test. This code is actually inside a helper but I put it here like test , so it will be easier to understand.I'm using <code>js: true</code> in the other test that invokes this helper method. </p>
  
  <p>Code below raises <code>Capybara::Webkit::ClickFailed:
         Failed to find position for element /html/body/div/div/div/div[2]/a[12]</code> </p>
  
  <pre><code>scenario "adding logged days", js: true do
  visit '/logged_days'
  
  find(:xpath, "//a[contains(.,'12')]").click
  # click_link("12") raises same error
  
  expect(current_path).to eq("/logged_days/new")
  
  
  fill_in "Опис виконаної роботи", with: "Some description"
  fill_in "Кількість відпрацьованих годин", with: 40
  
  click_button "Додати"
  
  expect(current_path).to eq("/logged_days")
  expect(page).to have_content("40")
  
  end
  </code></pre>
  
  <p>/logged_days: </p>
  
  <pre><code>   &lt;div class="page-header"&gt;
      &lt;h2&gt;Logged Days &lt;small&gt;March&lt;/small&gt;&lt;/h2&gt;
     &lt;/div&gt;
     &lt;div class="conteiner-fluid logged_days_container"&gt;
      &lt;% for i in 1..31 %&gt;
       &lt;%= link_to new_logged_day_path(:cal_date =&gt; "#{i}"), method: :get do %&gt;
        &lt;div class="calendar_cell"&gt;
          &lt;p class="cell_date"&gt;&lt;%= i %&gt;&lt;/p&gt;
          &lt;p class= "cell_text"&gt;&lt;/p&gt;
        &lt;/div&gt;
      &lt;% end %&gt;
     &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>