Class: Selenium::WebDriver::Interactions::KeyInput Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
InputDevice
|
|
Instance Chain:
self,
InputDevice
|
|
Inherits: |
Selenium::WebDriver::Interactions::InputDevice
|
Defined in: | rb/lib/selenium/webdriver/common/interactions/key_input.rb |
Overview
Creates actions specific to Key Input devices
Constant Summary
-
SUBTYPES =
# File 'rb/lib/selenium/webdriver/common/interactions/key_input.rb', line 30{down: :keyDown, up: :keyUp, pause: :pause}.freeze
Class Method Summary
Instance Attribute Summary
InputDevice
- Inherited
Instance Method Summary
- #create_key_down(key) Internal use only
- #create_key_up(key) Internal use only
InputDevice
- Inherited
Constructor Details
.new(name = nil) ⇒ KeyInput
# File 'rb/lib/selenium/webdriver/common/interactions/key_input.rb', line 32
def initialize(name = nil) super @type = Interactions::KEY end
Instance Method Details
#create_key_down(key)
[ GitHub ]# File 'rb/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)
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/interactions/key_input.rb', line 41
def create_key_up(key) add_action(TypingInteraction.new(self, :up, key)) end