Method: Selenium::WebDriver::ActionBuilder#add_pointer_input

Defined in:
lib/selenium/webdriver/common/action_builder.rb

#add_pointer_input(kind, name) ⇒ Interactions::PointerInput

Adds a PointerInput device of the given kind

Examples:

Add a touch pointer input device


builder = device.action
builder.add_pointer_input('touch', :touch)

Parameters:

  • name (String)

    name for the device

  • kind (Symbol)

    kind of pointer device to create

Returns:



64
65
66
# File 'lib/selenium/webdriver/common/action_builder.rb', line 64

def add_pointer_input(kind, name)
  add_input(Interactions.pointer(kind, name: name))
end