Sha256: 4496e2bd156015ccaa1f7af3c60b9c467554c167809e83c2f4fbe34401bd1b9b
Contents?: true
Size: 690 Bytes
Versions: 43
Compression:
Stored size: 690 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
43 entries across 43 versions & 1 rubygems