Module: Selenium::WebDriver::Interactions

Defined in:
lib/selenium/webdriver/common/interactions/pause.rb,
lib/selenium/webdriver/common/interactions/scroll.rb,
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/wheel_input.rb,
lib/selenium/webdriver/common/interactions/input_device.rb,
lib/selenium/webdriver/common/interactions/interactions.rb,
lib/selenium/webdriver/common/interactions/pointer_move.rb,
lib/selenium/webdriver/common/interactions/pointer_input.rb,
lib/selenium/webdriver/common/interactions/pointer_press.rb,
lib/selenium/webdriver/common/interactions/pointer_cancel.rb,
lib/selenium/webdriver/common/interactions/typing_interaction.rb,
lib/selenium/webdriver/common/interactions/pointer_event_properties.rb

Defined Under Namespace

Modules: PointerEventProperties Classes: InputDevice, Interaction, KeyInput, NoneInput, Pause, PointerCancel, PointerInput, PointerMove, PointerPress, Scroll, TypingInteraction, WheelInput

Constant Summary collapse

KEY =
:key
POINTER =
:pointer
NONE =
:none
WHEEL =
:wheel

Class Method Summary collapse

Class Method Details

.key(name = nil) ⇒ Object



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

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

.mouse(name: nil) ⇒ Object



41
42
43
# File 'lib/selenium/webdriver/common/interactions/interactions.rb', line 41

def mouse(name: nil)
  pointer(name: name)
end

.none(name = nil) ⇒ Object



53
54
55
# File 'lib/selenium/webdriver/common/interactions/interactions.rb', line 53

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

.pen(name: nil) ⇒ Object



45
46
47
# File 'lib/selenium/webdriver/common/interactions/interactions.rb', line 45

def pen(name: nil)
  pointer(:pen, name: name)
end

.pointer(kind = :mouse, name: nil) ⇒ Object



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

def pointer(kind = :mouse, name: nil)
  PointerInput.new(kind, name: name)
end

.touch(name: nil) ⇒ Object



49
50
51
# File 'lib/selenium/webdriver/common/interactions/interactions.rb', line 49

def touch(name: nil)
  pointer(:touch, name: name)
end

.wheel(name = nil) ⇒ Object



57
58
59
# File 'lib/selenium/webdriver/common/interactions/interactions.rb', line 57

def wheel(name = nil)
  WheelInput.new(name)
end