Hello,
My question is how do I check to see if an html table has anything in
it. I’m learning Ruby and ATDD at the same time and I made a test that
successfully checks to see if there is a specific string, num, float,
etc. in a particular row/column and it works. That being said I was
wondering how to check to see if there’s just anything at all in the
column to return a true statement so I don’t have to reference something
specific.
My code that works:
@browser.table(:index => 0)[7][1].text.include? ‘Hanna’
Is there a way to do something like:
@browser.table(:index => 0)[7][1].text.include? ‘Any string’, Any num,
Any float
I know this doesn’t work but you get the point. Any hope would be
greatly appreciated!