Class: Selenium::WebDriver::Interactions::WheelInput Private

Inherits:
InputDevice
  • Object
show all
Defined in:
rb/lib/selenium/webdriver/common/interactions/wheel_input.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.

Creates actions specific to Pointer Input devices

Instance Attribute Summary

Attributes inherited from InputDevice

#actions, #name, #type

Instance Method Summary collapse

Methods inherited from InputDevice

#add_action, #clear_actions, #create_pause, #encode

Constructor Details

#initialize(name = nil) ⇒ WheelInput

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



30
31
32
33
# File 'rb/lib/selenium/webdriver/common/interactions/wheel_input.rb', line 30

def initialize(name = nil)
  super(name)
  @type = Interactions::WHEEL
end

Instance Method Details

#create_scroll(**opts) ⇒ 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.



35
36
37
38
# File 'rb/lib/selenium/webdriver/common/interactions/wheel_input.rb', line 35

def create_scroll(**opts)
  opts[:source] = self
  add_action(Scroll.new(**opts))
end