title: How to get collection of elements in capybara cucumber
body: <p>all!</p>
  
  <p>Possible I have a table</p>
  
  <pre><code>&lt;tabel&gt;
      &lt;tr&gt;&lt;td&gt;&lt;input type=text/&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=text/&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;input type=text/&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=text/&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;input type=text/&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=text/&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;input type=text/&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=text/&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I want fill them in cycle with cucumber step definition like this</p>
  
  <pre><code>    table.hashes.each do |hash|
        within(:xpath,"//div[@id='cycle_form']/table/tr#{table.hashes.index(hash)}") do
          fill_in("schedule_of_working_new_cycle_attributes__day", :with =&gt; hash['day'])
          fill_in("schedule_of_working_new_cycle_attributes__hour", :with =&gt; hash['hour'])
          fill_in("schedule_of_working_new_cycle_attributes__hour_night", :with =&gt; hash['hour_night'])
        end
      end
  </code></pre>
  
  <p>I get   @ Unable to find xpath "//div[@id='cycle_form']/table/tr[0]" @</p>
  
  <p>How can i get collection of elements with capybara?</p>