Class: Selenium::WebDriver::Interactions::Interaction Private
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Interactions::Interaction
- Defined in:
- lib/selenium/webdriver/common/interactions/interaction.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Superclass for classes defining actions Do not initialize directly, only use subclass
Direct Known Subclasses
Pause, PointerCancel, PointerMove, PointerPress, Scroll, TypingInteraction
Instance Attribute Summary collapse
- #type ⇒ Object readonly private
Instance Method Summary collapse
- #assert_source(_source) ⇒ Object private
-
#initialize(source) ⇒ Interaction
constructor
private
A new instance of Interaction.
Constructor Details
#initialize(source) ⇒ Interaction
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Interaction.
33 34 35 |
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 33 def initialize(source) assert_source(source) end |
Instance Attribute Details
#type ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
31 32 33 |
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 31 def type @type end |
Instance Method Details
#assert_source(_source) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39 |
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 37 def assert_source(_source) raise NotImplementedError, 'subclass responsibility' end |