Sha256: 8f509f488822c87562b0a4662aeb7c4aa0698e716d2711ead1ff1f827251f0c7
Contents?: true
Size: 857 Bytes
Versions: 19
Compression:
Stored size: 857 Bytes
Contents
module Watir module Locators class Element class SelectorBuilder module XpathSupport UPPERCASE_LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞŸŽŠŒ'.freeze LOWERCASE_LETTERS = 'abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿžšœ'.freeze 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},'#{UPPERCASE_LETTERS}','#{LOWERCASE_LETTERS}')" end end end end end # XpathSupport end # Watir
Version data entries
19 entries across 19 versions & 1 rubygems