Method: Selenium::Client::GeneratedDriver#key_down

Defined in:
lib/selenium/client/legacy_driver.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“.

[View source]

285
286
287
# File 'lib/selenium/client/legacy_driver.rb', line 285

def key_down(locator,keySequence)
    remote_control_command("keyDown", [locator,keySequence,])
end