Class: Selenium::WebDriver::Interactions::InputDevice Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | rb/lib/selenium/webdriver/common/interactions/input_device.rb |
Overview
Superclass for the input device sources Manages Array of Interaction
instances for the device
Class Method Summary
- .new(name = nil) ⇒ InputDevice constructor Internal use only
Instance Attribute Summary
Instance Method Summary
- #add_action(action) Internal use only
- #clear_actions Internal use only
- #create_pause(duration = 0) Internal use only
- #encode Internal use only
Constructor Details
.new(name = nil) ⇒ InputDevice
Instance Attribute Details
#actions (readonly)
[ GitHub ]#name (readonly)
[ GitHub ]#type (readonly)
[ GitHub ]Instance Method Details
#add_action(action)
# File 'rb/lib/selenium/webdriver/common/interactions/input_device.rb', line 40
def add_action(action) raise TypeError, "#{action.inspect} is not a valid action" unless action.class < Interaction @actions << action end
#clear_actions
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/interactions/input_device.rb', line 46
def clear_actions @actions.clear end
#create_pause(duration = 0)
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/interactions/input_device.rb', line 50
def create_pause(duration = 0) add_action(Pause.new(self, duration)) end