Class: Watir::TextFieldLocator

Inherits:
ElementLocator show all
Defined in:
lib/watir-webdriver/locators/text_field_locator.rb

Constant Summary collapse

NON_TEXT_TYPES =
%w[file radio checkbox submit reset image button hidden datetime date month week time datetime-local range color]
NEGATIVE_TYPE_EXPR =

TODO: better way of finding input text fields?

NON_TEXT_TYPES.map { |type| "%s!=%s" % [XpathSupport.downcase('@type'), type.inspect] }.join(' and ')

Constants inherited from ElementLocator

ElementLocator::CONVERTABLE_REGEXP, ElementLocator::WD_FINDERS, ElementLocator::WILDCARD_ATTRIBUTE

Instance Method Summary collapse

Methods inherited from ElementLocator

#initialize, #locate

Constructor Details

This class inherits a constructor from Watir::ElementLocator

Instance Method Details

#locate_allObject



13
14
15
# File 'lib/watir-webdriver/locators/text_field_locator.rb', line 13

def locate_all
  find_all_by_multiple
end

#wd_find_first_by(how, what) ⇒ Object



8
9
10
11
# File 'lib/watir-webdriver/locators/text_field_locator.rb', line 8

def wd_find_first_by(how, what)
  how, what = build_wd_selector(how => what) if how == :tag_name
  super
end