Method: Selenium::WebDriver::Interactions::PointerPress#initialize

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

#initialize(source, direction, button, **opts) ⇒ PointerPress

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 PointerPress.


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

def initialize(source, direction, button, **opts)
  super(source)
  @direction = assert_direction(direction)
  @button = assert_button(button)
  @type = @direction
  @opts = opts
end