123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::Interactions::PointerCancel Private

Do not use. This class is for internal use only.
Relationships & Source Files
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/pointer_cancel.rb

Overview

Action to cancel any other Pointer Action.

Class Method Summary

Interaction - Inherited

Instance Attribute Summary

Interaction - Inherited

Instance Method Summary

Interaction - Inherited

Constructor Details

.new(source) ⇒ PointerCancel

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/pointer_cancel.rb', line 30

def initialize(source)
  super(source)
  @type = :pointerCancel
end

Instance Method Details

#assert_source(source)

Raises:

  • (TypeError)
[ GitHub ]

  
# File 'rb/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

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/interactions/pointer_cancel.rb', line 39

def encode
  {type: type}
end