lib/watir/locators/element/selector_builder.rb in watir-7.0.0.beta1 vs lib/watir/locators/element/selector_builder.rb in watir-7.0.0.beta2
- old
+ new
@@ -86,12 +86,9 @@
!valid_attribute?(:label)
end
def normalize_locator(how, what)
case how
- when 'text'
- Watir.logger.deprecate "String 'text' as a locator", 'Symbol :text', ids: [:text_string]
- [:text, what]
when :tag_name
what = what.to_s if what.is_a?(::Symbol)
[how, what]
when :text, :xpath, :index, :css, :visible, :visible_text, :adjacent
[how, what]