title: How to find last matching element in capybara?
body: <p>I wanted to do find by <code>class_name</code> and return last element among all elements.</p>
  
  <p>In jquery, we can write something like below but that don't seems to work in capybara</p>
  
  <pre><code>find(".delete:last")
  </code></pre>
  
  <p>If you are using <code>webkit</code> driver you can write something like -</p>
  
  <pre><code>find(".delete:last-child")
  </code></pre>
  
  <p>In capybara, you can get last element using below -</p>
  
  <pre><code>all(:css, ".delete").last
  </code></pre>
  
  <p>Is there any alternative to above?</p>