How do I test that a table has 3 rows using Capybara?
page.should have_selector('table tr', :count => 3)
you can also do minimum or maximum
page.should have_selector('table tr', :minimum => 3)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With