Class: RFormUnit::Keyboard
- Inherits:
-
Object
- Object
- RFormUnit::Keyboard
- Includes:
- Driver, Singleton
- Defined in:
- lib/rformunit/keyboard.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#_type(keystrokes) ⇒ Object
(also: #_press)
instance methods.
Methods included from Driver
#close_window, #driver, #focus_window, #init, #key_press, #open_file_dialog, #set_autoit_option, #wait_and_focus_window, #wait_for_window, #window_exists?
Class Method Details
.press(key) ⇒ Object
13 14 15 |
# File 'lib/rformunit/keyboard.rb', line 13 def self.press(key) instance._type(key) end |
.type(keys) ⇒ Object
9 10 11 |
# File 'lib/rformunit/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/rformunit/keyboard.rb', line 18 def _type(keystrokes) driver.Send(keystrokes) end |