Sha256: fe4ed10a38c882e7ccb92c16cd6b3ea2a2d3de9c8798022b32d338e0b6e99774
Contents?: true
Size: 428 Bytes
Versions: 1
Compression:
Stored size: 428 Bytes
Contents
module Watir module XpathSupport def self.escape(value) if value.include? "'" parts = value.split("'", -1).map { |part| "'#{part}'" } string = parts.join(%(,"'",)) "concat(#{string})" else "'#{value}'" end end def self.downcase(value) "translate(#{value},'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')" end end # XpathSupport end # Watir
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-6.14.0 | lib/watir/xpath_support.rb |