Monthly Archives: June 2010

>Watir: Search for elements on page using multiple attributes

>I ran into a situation today where i wanted to scan through a page and return a table based on the table matching 3 attributes Before: browser.tables.find do |table| table.class_name == ‘my_class_name’ and table.cell(:class, ‘class_1_name’).text == ‘some_text_1’ and table.cell(:class, ‘class_2_name’).text … Continue reading

Posted in Software Testing | Tagged , , | Leave a comment