Method: Selenium::SeleniumDriver#key_down
- Defined in:
- lib/selenium/openqa/selenium.rb
#key_down(locator, keySequence) ⇒ Object
Simulates a user pressing a key (without releasing it yet).
‘locator’ is an element locator ‘keySequence’ is Either be a string(“\” followed by the numeric keycode of the key to be pressed, normally the ASCII value of that key), or a single character. For example: “w”, “\119”.
357 358 359 |
# File 'lib/selenium/openqa/selenium.rb', line 357 def key_down(locator,keySequence) do_command("keyDown", [locator,keySequence,]) end |