class Selenium::WebDriver::Interactions::KeyInput

Creates actions specific to Key Input devices

@api private

Constants

SUBTYPES

Public Class Methods

new(name = nil) click to toggle source
# File lib/selenium/webdriver/common/interactions/key_input.rb, line 32
def initialize(name = nil)
  super
  @type = Interactions::KEY
end

Public Instance Methods

create_key_down(key) click to toggle source
# File lib/selenium/webdriver/common/interactions/key_input.rb, line 37
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 41
def create_key_up(key)
  add_action(TypingInteraction.new(self, :up, key))
end