I am using Capybara to do some testing on a website which has a table on it that holds a variable amount of data and is generated by google visualisation. The table has no ID value and I have been told there is no way of putting an ID field in.
Is there any other way to find a table and then be able to pull in and look through the data in the table in capybara/ruby? I know what data should be in the table and want to check that it is displaying the correct results.
Thanks
You could use xpath:
Or standard finders a la jQuery:
Sidenote, remember you can chain
findcalls.Since you’ve a class, use it!