Class: Selenium::WebDriver::Interactions::NoneInput

Inherits:
InputDevice
  • Object
show all
Defined in:
lib/selenium/webdriver/common/interactions/none_input.rb

Instance Attribute Summary

Attributes inherited from InputDevice

#actions, #name

Instance Method Summary collapse

Methods inherited from InputDevice

#add_action, #clear_actions, #create_pause, #initialize, #no_actions?

Constructor Details

This class inherits a constructor from Selenium::WebDriver::Interactions::InputDevice

Instance Method Details

#encodeObject



26
27
28
29
# File 'lib/selenium/webdriver/common/interactions/none_input.rb', line 26

def encode
  return nil if no_actions?
  {type: type, id: name, actions: @actions.map(&:encode)}
end

#typeObject



22
23
24
# File 'lib/selenium/webdriver/common/interactions/none_input.rb', line 22

def type
  Interactions::NONE
end