class Selenium::WebDriver::Interactions::PointerCancel

Action to cancel any other Pointer Action.

@api private

Public Class Methods

new(source) click to toggle source
# File lib/selenium/webdriver/common/interactions/pointer_cancel.rb, line 30
def initialize(source)
  super(source)
  @type = :pointerCancel
end

Public Instance Methods

assert_source(source) click to toggle source
# 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() click to toggle source
# File lib/selenium/webdriver/common/interactions/pointer_cancel.rb, line 39
def encode
  {type: type}
end