class Selenium::WebDriver::Interactions::KeyInput
Creates actions specific to Key Input devices
@api private
Constants
- SUBTYPES
Public Class Methods
Source
# File lib/selenium/webdriver/common/interactions/key_input.rb, line 32 def initialize(name = nil) super @type = Interactions::KEY end
Calls superclass method
Selenium::WebDriver::Interactions::InputDevice::new
Public Instance Methods
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
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