class Selenium::WebDriver::Interactions::KeyInput
Constants
- SUBTYPES
Public Instance Methods
create_key_down(key)
click to toggle source
# File lib/selenium/webdriver/common/interactions/key_input.rb, line 35 def create_key_down(key) add_action(TypingInteraction.new(self, :down, key)) end
create_key_up(key)
click to toggle source
# File lib/selenium/webdriver/common/interactions/key_input.rb, line 39 def create_key_up(key) add_action(TypingInteraction.new(self, :up, key)) end
encode()
click to toggle source
# File lib/selenium/webdriver/common/interactions/key_input.rb, line 29 def encode return nil if no_actions? {type: type, id: name, actions: @actions.map(&:encode)} end
type()
click to toggle source
# File lib/selenium/webdriver/common/interactions/key_input.rb, line 25 def type Interactions::KEY end