Sha256: 5503faca971040e3b3c715317f998f4231b43dfb384ce57ee4a2b6c6c63b729a
Contents?: true
Size: 324 Bytes
Versions: 10
Compression:
Stored size: 324 Bytes
Contents
# encoding: utf-8 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 end # XpathSupport end # Watir
Version data entries
10 entries across 10 versions & 1 rubygems