Sha256: 3bda6de6e7b8d6a4a8763206e20db31c7b65888be8e671b90528a5ecc51ffb86
Contents?: true
Size: 666 Bytes
Versions: 3
Compression:
Stored size: 666 Bytes
Contents
module Watir class TextAreaLocator < ElementLocator private def can_convert_regexp_to_contains? false end 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 ElementLocator 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 # TextAreaLocator end # Watir
Version data entries
3 entries across 3 versions & 1 rubygems