title: How to click first link in list of items after upgrading to Capybara 2.0?
body: <p>How to click first link in that case:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="item"&gt;
    &lt;a href="/agree/"&gt;Agree&lt;/a&gt;
  &lt;/div&gt;
  &lt;div class="item"&gt;
    &lt;a href="/agree/"&gt;Agree&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <pre class="lang-ruby prettyprint-override"><code>within ".item" do
    first(:link, "Agree").click
  end
  </code></pre>
  
  <p>and I get this error:</p>
  
  <pre><code>Capybara::Ambiguous:
    Ambiguous match, found 2 elements matching css ".item"
  </code></pre>
  
  <p>And without the <code>within</code> I get this error:</p>
  
  <pre><code>Failure/Error: first(:link, "Agree").click
  NoMethodError:
    undefined method `click' for nil:NilClass
  </code></pre>