title: Ambiguous match using nth-child capybara
body: <p>I am trying to test that sorting works on an app I am testing. I have added 2 entries 'a' and 'b'. I wish to test that a appear before b. Html is as follows:</p>
  
  <pre><code>&lt;ul id="attendee-list" class="bars"&gt;
  &lt;div&gt;
      &lt;li id="attendee-812202" class="bar border link attendee"&gt;
      &lt;a class="expandable clearfix" href="#!/person/812202/"&gt;
  &lt;/div&gt;
       &lt;div class="description"&gt;
       &lt;p class="title"&gt;a&lt;/p&gt;
       &lt;p class="subtitle"&gt;&lt;/p&gt;
       &lt;p class="subtitle"&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;/a&gt;
  &lt;/li&gt;
  &lt;/div&gt;
  &lt;div&gt;
       &lt;li id="attendee-812206" class="bar border link attendee"&gt;
       &lt;a class="expandable clearfix" href="#!/person/812206/"&gt;
       &lt;div class="description"&gt;
       &lt;p class="title"&gt;b&lt;/p&gt;
  &lt;p class="subtitle"&gt;&lt;/p&gt;
  &lt;p class="subtitle"&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;/a&gt;
  &lt;/li&gt;
  &lt;/div&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>So what I have tried is the following:</p>
  
  <pre><code>  find("ul.bars li:nth-child(1) a div.description p.title").should have_content("a")
    find("ul.bars li:nth-child(2) a div.description p.title").should have_content("b")
  </code></pre>
  
  <p>However I get an ambiguous match error. Does anyone know if I am doing anything wrong here or perhaps an alternative method to verify?</p>