Sha256: b05d08d48a6f84304d0be900c6368803ebaec2136b8359fab5d3cf995bd19c53
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
module Watir module Locators class Button class SelectorBuilder class XPath < Element::SelectorBuilder::XPath def lhs_for(building, key) if building == :input && key == :text '@value' else super end end private def equal_pair(building, key, value) if building == :button && key == :value # :value should look for both node text and @value attribute text = XpathSupport.escape(value) "(text()=#{text} or @value=#{text})" else super end 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/selector_builder/xpath.rb |