module Selenium::WebDriver::Keys
Constants
Public Class Methods
[](key)
click to toggle source
@api private
# File lib/selenium/webdriver/common/keys.rb, line 114 def self.[](key) return KEYS[key] if KEYS[key] raise Error::UnsupportedOperationError, "no such key #{key.inspect}" end
encode(keys)
click to toggle source
@api private
# File lib/selenium/webdriver/common/keys.rb, line 124 def self.encode(keys) keys.map { |key| encode_key(key) } end
encode_key(key)
click to toggle source
@api private
# File lib/selenium/webdriver/common/keys.rb, line 132 def self.encode_key(key) case key when Symbol Keys[key] when Array key = key.map { |e| e.is_a?(Symbol) ? Keys[e] : e }.join key << Keys[:null] key else key.to_s end end