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

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

Superclass for classes defining actions Do not initialize directly, only use subclass

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ Interaction

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

API:

  • private



33
34
35
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 33

def initialize(source)
  assert_source(source)
end

Instance Attribute Details

#typeObject (readonly)

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.

API:

  • private



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

def type
  @type
end

Instance Method Details

#assert_source(_source) ⇒ 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.

Raises:

API:

  • private



37
38
39
# File 'lib/selenium/webdriver/common/interactions/interaction.rb', line 37

def assert_source(_source)
  raise NotImplementedError, 'subclass responsibility'
end