Sha256: 587d87a1c7008c09ce3626e24e810664bce489de6c4340edea139d1e04b4a8e6
Contents?: true
Size: 430 Bytes
Versions: 49
Compression:
Stored size: 430 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
49 entries across 49 versions & 2 rubygems