Updated 2016-09-19. Posted 2010-10-04. Visible to the public. Capybara's has_css? matcher has a couple of options you might find useful. Check that a selector appears a given number of times Use the :count option like this: Then /^I should see (\d+) users?$/ do |count| page.should have_css('ul#users li', :count => count.to_i) end Check that a selector has a given text content Use the :text option

