Sha256: 43c0e11c127175c795b498ea02d259ad9d772ac574605e5cc9d0fc7900c0e980
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 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 Selenium 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-6.10.1 | lib/watir/locators/text_area/selector_builder.rb |