Class: Selenium::WebDriver::Interactions::PointerCancel Private
- Inherits:
-
Interaction
- Object
- Interaction
- Selenium::WebDriver::Interactions::PointerCancel
- Defined in:
- lib/selenium/webdriver/common/interactions/pointer_cancel.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.
Action to cancel any other Pointer Action.
Instance Attribute Summary
Attributes inherited from Interaction
Instance Method Summary collapse
- #assert_source(source) ⇒ Object private
- #encode ⇒ Object private
-
#initialize(source) ⇒ PointerCancel
constructor
private
A new instance of PointerCancel.
Constructor Details
#initialize(source) ⇒ PointerCancel
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 PointerCancel.
30 31 32 33 |
# File 'lib/selenium/webdriver/common/interactions/pointer_cancel.rb', line 30 def initialize(source) super @type = :pointerCancel 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.
35 36 37 |
# File 'lib/selenium/webdriver/common/interactions/pointer_cancel.rb', line 35 def assert_source(source) raise TypeError, "#{source.type} is not a valid input type" unless source.is_a? PointerInput end |
#encode ⇒ 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.
39 40 41 |
# File 'lib/selenium/webdriver/common/interactions/pointer_cancel.rb', line 39 def encode {type: type} end |