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


28
29
30
31
32
# File 'lib/selenium/webdriver/common/interactions/none_input.rb', line 28

def encode
  return nil if no_actions?

  {type: type, id: name, actions: @actions.map(&:encode)}
end

#typeObject


24
25
26
# File 'lib/selenium/webdriver/common/interactions/none_input.rb', line 24

def type
  Interactions::NONE
end