Sha256: bc0036d94a5206a8d5fb3848d74a4f6af113900d8fefab6220a252f9dec856b9
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
module Watir module Locators class TextField class Locator < Element::Locator private def using_selenium(*) # force Watir usage end def matches_selector?(element, rx_selector) rx_selector = rx_selector.dup tag_name = element.tag_name.downcase [:text, :value, :label].each do |key| if rx_selector.key?(key) correct_key = tag_name == 'input' ? :value : :text rx_selector[correct_key] = rx_selector.delete(key) end end super 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_field/locator.rb |