Method: Selenium::WebDriver::Interactions::PointerInput#assert_kind

Defined in:
lib/selenium/webdriver/common/interactions/pointer_input.rb

#assert_kind(pointer) ⇒ 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)
[View source]

46
47
48
49
50
# File 'lib/selenium/webdriver/common/interactions/pointer_input.rb', line 46

def assert_kind(pointer)
  raise TypeError, "#{pointer.inspect} is not a valid pointer type" unless KIND.key? pointer

  KIND[pointer]
end