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

Inherits:
Interaction
  • Object
show all
Defined in:
rb/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

#type

Instance Method Summary collapse

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 'rb/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.

Raises:

  • (TypeError)


35
36
37
# 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

#encodeObject

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 'rb/lib/selenium/webdriver/common/interactions/pointer_cancel.rb', line 39

def encode
  {type: type}
end