unittests/element_collections_test.rb in watir-2.0.1 vs unittests/element_collections_test.rb in watir-2.0.2.rc1
- old
+ new
@@ -79,7 +79,16 @@
def test_unallowed_index_specifier
assert_raises(Watir::Exception::MissingWayOfFindingObjectException) {browser.divs(:index, 1)}
end
+ def test_table_rows
+ rows = browser.table.rows
+ assert 2, rows.size
+ rows.each_with_index do |row, i|
+ assert Watir::TableRow, row.class
+ assert i == 0 ? "one" : "two", row.class_name
+ end
+ end
+
end