Sha256: 14c345f11fbbda20a5d2ffc60915e2c5603bfebb5e422c2997ef4d532406be32
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
module Watir module Locators class TextArea class SelectorBuilder < Element::SelectorBuilder private 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 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems