Sha256: af90f94033740787ac03da65ee07f36e2cb9aa67466dab56f90697e561fb490b
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
module Watir module Locators class Button class Locator < Element::Locator private def using_selenium(*) # force watir usage end def can_convert_regexp_to_contains? # regexp conversion won't work with the complex xpath selector false end def matches_selector?(element, selector) if selector.key?(:value) copy = selector.dup value = copy.delete(:value) super(element, copy) && (fetch_value(element, :value) =~ /#{value}/ || fetch_value(element, :text) =~ /#{value}/) else super end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-6.14.0 | lib/watir/locators/button/locator.rb |