How to find last matching element in capybara? May 23, 2023 by Tarik I had the same problem and ended up using this method in Capybara 2.4 all('.delete').last