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.
26 27 28 29 |
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 26 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.
24 25 26 |
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 24 def source @source end |