Class: Selenium::WebDriver::Interactions::TypingInteraction Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Interaction
|
|
Instance Chain:
self,
Interaction
|
|
Inherits: |
Selenium::WebDriver::Interactions::Interaction
|
Defined in: | rb/lib/selenium/webdriver/common/interactions/typing_interaction.rb |
Overview
Actions related to pressing keys.
Class Method Summary
- .new(source, type, key) ⇒ TypingInteraction constructor Internal use only
Interaction
- Inherited
Instance Attribute Summary
Instance Method Summary
- #assert_source(source) Internal use only
- #assert_type(type) Internal use only
- #encode Internal use only
Interaction
- Inherited
Constructor Details
.new(source, type, key) ⇒ TypingInteraction
# File 'rb/lib/selenium/webdriver/common/interactions/typing_interaction.rb', line 32
def initialize(source, type, key) super(source) @type = assert_type(type) @key = Keys.encode_key(key) end
Instance Attribute Details
#type (readonly)
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/interactions/typing_interaction.rb', line 30
attr_reader :type
Instance Method Details
#assert_source(source)
#assert_type(type)
#encode
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/interactions/typing_interaction.rb', line 48
def encode {type: @type, value: @key} end