Skip to content

Instantly share code, notes, and snippets.

@NoxArt
Created November 9, 2012 13:58
Show Gist options
  • Save NoxArt/4045774 to your computer and use it in GitHub Desktop.
Save NoxArt/4045774 to your computer and use it in GitHub Desktop.
WebDriver key codes
<?php
class Keys {
const KEY_NULL = "\xEE\x80\x80";
const KEY_CANCEL = "\xEE\x80\x81";
const KEY_HELP = "\xEE\x80\x82";
const KEY_BACKSPACE = "\xEE\x80\x83";
const KEY_TAB = "\xEE\x80\x84";
const KEY_CLEAR = "\xEE\x80\x85";
const KEY_RETURN = "\xEE\x80\x86";
const KEY_ENTER = "\xEE\x80\x87";
const KEY_SHIFT = "\xEE\x80\x88";
const KEY_LEFT_SHIFT = "\xEE\x80\x88";
const KEY_CONTROL = "\xEE\x80\x89";
const KEY_LEFT_CONTROL = "\xEE\x80\x89";
const KEY_ALT = "\xEE\x80\x8A";
const KEY_LEFT_ALT = "\xEE\x80\x8A";
const KEY_PAUSE = "\xEE\x80\x8B";
const KEY_ESCAPE = "\xEE\x80\x8C";
const KEY_SPACE = "\xEE\x80\x8D";
const KEY_PAGE_UP = "\xEE\x80\x8E";
const KEY_PAGE_DOWN = "\xEE\x80\x8F";
const KEY_END = "\xEE\x80\x90";
const KEY_HOME = "\xEE\x80\x91";
const KEY_LEFT = "\xEE\x80\x92";
const KEY_ARROW_LEFT = "\xEE\x80\x92";
const KEY_UP = "\xEE\x80\x93";
const KEY_ARROW_UP = "\xEE\x80\x93";
const KEY_RIGHT = "\xEE\x80\x94";
const KEY_ARROW_RIGHT = "\xEE\x80\x94";
const KEY_DOWN = "\xEE\x80\x95";
const KEY_ARROW_DOWN = "\xEE\x80\x95";
const KEY_INSERT = "\xEE\x80\x96";
const KEY_DELETE = "\xEE\x80\x97";
const KEY_SEMICOLON = "\xEE\x80\x98";
const KEY_EQUALS = "\xEE\x80\x99";
const KEY_NUMPAD0 = "\xEE\x80\x9A";
const KEY_NUMPAD1 = "\xEE\x80\x9B";
const KEY_NUMPAD2 = "\xEE\x80\x9C";
const KEY_NUMPAD3 = "\xEE\x80\x9D";
const KEY_NUMPAD4 = "\xEE\x80\x9E";
const KEY_NUMPAD5 = "\xEE\x80\x9F";
const KEY_NUMPAD6 = "\xEE\x80\xA0";
const KEY_NUMPAD7 = "\xEE\x80\xA1";
const KEY_NUMPAD8 = "\xEE\x80\xA2";
const KEY_NUMPAD9 = "\xEE\x80\xA3";
const KEY_MULTIPLY = "\xEE\x80\xA4";
const KEY_ADD = "\xEE\x80\xA5";
const KEY_SEPARATOR = "\xEE\x80\xA6";
const KEY_SUBTRACT = "\xEE\x80\xA7";
const KEY_DECIMAL = "\xEE\x80\xA8";
const KEY_DIVIDE = "\xEE\x80\xA9";
const KEY_F1 = "\xEE\x80\xB1";
const KEY_F2 = "\xEE\x80\xB2";
const KEY_F3 = "\xEE\x80\xB3";
const KEY_F4 = "\xEE\x80\xB4";
const KEY_F5 = "\xEE\x80\xB5";
const KEY_F6 = "\xEE\x80\xB6";
const KEY_F7 = "\xEE\x80\xB7";
const KEY_F8 = "\xEE\x80\xB8";
const KEY_F9 = "\xEE\x80\xB9";
const KEY_F10 = "\xEE\x80\xBA";
const KEY_F11 = "\xEE\x80\xBB";
const KEY_F12 = "\xEE\x80\xBC";
const KEY_META = "\xEE\x80\xBD";
const KEY_COMMAND = "\xEE\x80\xBD"; # alias
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment