class Watir::Locators::TextArea::SelectorBuilder
Private Instance Methods
normalize_selector(how, what)
click to toggle source
Calls superclass method
Watir::Locators::Element::SelectorBuilder#normalize_selector
# File lib/watir-webdriver/locators/text_area/selector_builder.rb, line 7 def normalize_selector(how, what) # We need to iterate through located elements and fetch # attribute value using WebDriver because XPath doesn't understand # difference between IDL vs content attribute. # Current Element design doesn't allow to do that in any # obvious way except to use regular expression. if how == :value && what.kind_of?(String) [how, Regexp.new('^' + Regexp.escape(what) + '$')] else super end end