I have a table in my app.

Using Capybara and Cucumber, how do I assert that values 4.5 and 1.1 happen only in the Mike’s row?
Is such assertion possible in Capybara?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it’s possible and easy:
Here’s full script that you can use for testing
Update: I thought about it more. The code above will be very slow as every invocation of
findandtextintd_textwill make new query to browser.The only way to mitigate it that I see is to use JS and Nokogiri:
The first variant of code runs about 200 milliseconds at my machine though the second one – 8 milliseconds. Good optimization!