module Watigiri::Locators::MatcherHelpers
Attributes
nokogiri[RW]
Public Instance Methods
deprecate_text_regexp(*)
click to toggle source
# File lib/watigiri/locators/element/matcher.rb, line 25 def deprecate_text_regexp(*) # not applicable to Watigiri end
fetch_value(element, how)
click to toggle source
Calls superclass method
# File lib/watigiri/locators/element/matcher.rb, line 10 def fetch_value(element, how) return super unless nokogiri case how when :text element.inner_text when :href element.attribute('href')&.to_s&.strip when :tag_name element.name.downcase else super.to_s end end
matching_labels(elements, *)
click to toggle source
Calls superclass method
# File lib/watigiri/locators/element/matcher.rb, line 6 def matching_labels(elements, *) nokogiri ? elements : super end