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

Inherits:
Object
  • Object
show all
Defined in:
rb/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

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.



33
34
35
# File 'rb/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.



31
32
33
# File 'rb/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:

  • (NotImplementedError)


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

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