lib/watir/locators/text_field/validator.rb in watir-6.0.0.beta5 vs lib/watir/locators/text_field/validator.rb in watir-6.0.0

- old
+ new

@@ -1,18 +1,10 @@ module Watir module Locators class TextField class Validator < Element::Validator - VALID_TEXT_FIELD_TAGS = %w[input textarea] - def validate(element, selector) - element_tag_name = element.tag_name.downcase - - if element.tag_name.downcase == 'textarea' - warn "Locating textareas with '#text_field' is deprecated. Please, use '#textarea' method instead." - end - return unless VALID_TEXT_FIELD_TAGS.include?(element_tag_name) - + return unless element.tag_name.downcase == 'input' element end end end end