lib/watir/locator.rb in watir-2.0.3 vs lib/watir/locator.rb in watir-2.0.4
- old
+ new
@@ -27,9 +27,10 @@
@specifiers[how] = what
end
end
def match_with_specifiers?(element)
+ return true if has_excluding_specifiers?
@specifiers.all? {|how, what| how == :index || match?(element, how, what)}
end
def has_excluding_specifiers?
@specifiers.keys.any? {|specifier| [:css, :xpath, :ole_object].include? specifier}