lib/watir/locators/text_field/selector_builder/xpath.rb in watir-6.16.5 vs lib/watir/locators/text_field/selector_builder/xpath.rb in watir-6.17.0

- old
+ new

@@ -34,10 +34,12 @@ end end def negative_type_text Watir::TextField::NON_TEXT_TYPES.map { |type| - "#{lhs_for(:type, true)}!=#{SelectorBuilder::XpathSupport.escape type}" + lhs = lhs_for(:type, downcase: true) + rhs = SelectorBuilder::XpathSupport.downcase(SelectorBuilder::XpathSupport.escape(type)) + "#{lhs}!=#{rhs}" }.join(' and ') end end end end