WebDriver.Keys
This provides symbols to represent various non-printable keystrokes that can be sent to a web browser.
The codes are defined in: https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/:id/value
Summary
key(key_code) | This function is used to return the Unicode codes for simuluation non text key presses |
Functions
This function is used to return the Unicode codes for simuluation non text key presses.
See: https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/:id/value
Key codes that are available:
{ :key_null, ""},
{ :key_cancel, ""},
{ :key_help, ""},
{ :key_back_space,""},
{ :key_tab, ""},
{ :key_clear, ""},
{ :key_return, ""},
{ :key_enter, ""},
{ :key_shift, ""},
{ :key_control, ""},
{ :key_alt, ""},
{ :key_pause, ""},
{ :key_escape, ""},
{ :key_space, ""},
{ :key_page_up, ""},
{ :key_page_down, ""},
{ :key_end, ""},
{ :key_home, ""},
{ :key_left, ""},
{ :key_up, ""},
{ :key_right, ""},
{ :key_down, ""},
{ :key_insert, ""},
{ :key_delete, ""},
{ :key_semicolon, ""},
{ :key_equals, ""},
{ :key_numpad_0, ""},
{ :key_numpad_1, ""},
{ :key_numpad_2, ""},
{ :key_numpad_3, ""},
{ :key_numpad_4, ""},
{ :key_numpad_5, ""},
{ :key_numpad_6, ""},
{ :key_numpad_7, ""},
{ :key_numpad_8, ""},
{ :key_numpad_9, ""},
{ :key_multiply, ""},
{ :key_add, ""},
{ :key_separator, ""},
{ :key_subtract, ""},
{ :key_decimal, ""},
{ :key_divide, ""},
{ :key_f1, ""},
{ :key_f2, ""},
{ :key_f3, ""},
{ :key_f4, ""},
{ :key_f5, ""},
{ :key_f6, ""},
{ :key_f7, ""},
{ :key_f8, ""},
{ :key_f9, ""},
{ :key_f10, ""},
{ :key_f11, ""},
{ :key_f12, ""},
{ :key_meta, ""}