Class: RFormSpec::Keyboard

Inherits:
Object
  • Object
show all
Includes:
Driver, Singleton
Defined in:
lib/rformspec/keyboard.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Driver

#close_window, #driver, #focus_window, #key_press, #mouse_click, #mouse_move, #open_file_dialog, #try_for, #wait_and_focus_window, #wait_for_window, #window_exists?

Methods included from TestWisePlugin

#connect_to_testwise, #debug, #dump_caller_stack, #notify_screenshot_location, #operation_delay

Class Method Details

.press(key) ⇒ Object



13
14
15
# File 'lib/rformspec/keyboard.rb', line 13

def self.press(key)
  instance._type(key)
end

.type(keys) ⇒ Object



9
10
11
# File 'lib/rformspec/keyboard.rb', line 9

def self.type(keys)
  instance._type(keys)
end

Instance Method Details

#_type(keystrokes) ⇒ Object Also known as: _press

instance methods



18
19
20
# File 'lib/rformspec/keyboard.rb', line 18

def _type(keystrokes)
  driver.Send(keystrokes)
end