unittests/element_collections_test.rb in watir-2.0.3 vs unittests/element_collections_test.rb in watir-2.0.4
- old
+ new
@@ -60,9 +60,15 @@
elements = browser.elements(:name => "testdivs")
assert 2, elements.size
elements.each do |element|
assert Watir::Div, element.class
end
+
+ elements = browser.elements(:css => "div")
+ assert 2, elements.size
+ elements.each do |element|
+ assert Watir::Div, element.class
+ end
end
def test_multiple_specifiers
links = browser.links(:name => /test/, :class => /one|two/)
assert 2, links.size