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 36
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 40
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 30
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 26
def type
  Interactions::KEY
end