lib/watir/image.rb in watir-1.6.7 vs lib/watir/image.rb in watir-1.7.0.rc1
- old
+ new
@@ -14,9 +14,11 @@
end
def locate
if @how == :xpath
@o = @container.element_by_xpath(@what)
+ elsif @how == :css
+ @o = @container.element_by_css(@what)
else
@o = @container.locate_tagged_element('IMG', @how, @what)
end
end
\ No newline at end of file