Class: Selenium::WebDriver::Interactions::Interaction
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Interactions::Interaction
- Defined in:
- lib/selenium/webdriver/common/interactions/interaction.rb
Direct Known Subclasses
KeyInput::TypingInteraction, Pause, PointerCancel, PointerMove, PointerPress
Constant Summary collapse
- PAUSE =
:pause
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source) ⇒ Interaction
constructor
A new instance of Interaction.
Constructor Details
#initialize(source) ⇒ Interaction
Returns a new instance of Interaction.
28 29 30 31 |
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 28 def initialize(source) raise TypeError, "#{source.type} is not a valid input type" unless Interactions::SOURCE_TYPES.include? source.type @source = source end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
26 27 28 |
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 26 def source @source end |