Class: Selenium::WebDriver::Interactions::Interaction

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

Constant Summary collapse

PAUSE =
:pause

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ Interaction

Returns a new instance of Interaction.

Raises:

  • (TypeError)


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

def initialize(source)
  raise TypeError, "#{source.type} is not a valid input type" unless Interactions::SOURCE_TYPES.include? source.type
  @source = source
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



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

def source
  @source
end