Sha256: c0981a0ae92fd4f5a073918c8aa9ebd458f3aed2caf86bdf835ee83c011afe6d
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 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.10.1 | lib/watir/locators/button/selector_builder/xpath.rb |