Module: Selenium::WebDriver::Interactions

Defined in:
lib/selenium/webdriver/common/interactions/key_input.rb,
lib/selenium/webdriver/common/interactions/none_input.rb,
lib/selenium/webdriver/common/interactions/interaction.rb,
lib/selenium/webdriver/common/interactions/input_device.rb,
lib/selenium/webdriver/common/interactions/interactions.rb,
lib/selenium/webdriver/common/interactions/pointer_input.rb

Defined Under Namespace

Classes: InputDevice, Interaction, KeyInput, NoneInput, Pause, PointerCancel, PointerInput, PointerMove, PointerPress

Constant Summary collapse

KEY =
:key
POINTER =
:pointer
NONE =
:none
SOURCE_TYPES =
[KEY, POINTER, NONE].freeze

Class Method Summary collapse

Class Method Details

.key(name) ⇒ Object


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

def key(name)
  KeyInput.new(name)
end

.none(name = nil) ⇒ Object


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

def none(name = nil)
  NoneInput.new(name)
end

.pointer(kind, **kwargs) ⇒ Object


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

def pointer(kind, **kwargs)
  PointerInput.new(kind, **kwargs)
end