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