lib/watir-classic/locator.rb in watir-classic-4.0.1 vs lib/watir-classic/locator.rb in watir-classic-4.1.0

- old
+ new

@@ -6,11 +6,11 @@ include XpathLocator def initialize container, specifiers, klass @container = container @specifiers = {:index => 0}.merge(normalize_specifiers(specifiers)) - @tags = @specifiers.delete(:tag_name) + @tags = [@specifiers.delete(:tag_name)].flatten @klass = klass end def each if has_excluding_specifiers? @@ -41,10 +41,10 @@ when :url how = :href when :class how = :class_name when :caption - how = :value + how = :text when :method how = :form_method when :value what = what.is_a?(Regexp) ? what : what.to_s end