Class Key

Representations of pressable keys that aren't text. These are stored in the Unicode PUA (Private Use Area) code points, 0xE000-0xF8FF. Refer to http://www.google.com.au/search?&q=unicode+pua&btnG=Search NOTE: A class was used instead of an Enum so that it could be extended in Protractor

enum

{string}

Hierarchy

Index

Properties

Methods

Properties

public static ADD: string

public static ALT: string

public static ARROW_DOWN: string

public static ARROW_LEFT: string

public static ARROW_RIGHT: string

public static ARROW_UP: string

public static BACK_SPACE: string

public static CANCEL: string

public static CLEAR: string

public static COMMAND: string

public static CONTROL: string

public static DECIMAL: string

public static DELETE: string

public static DIVIDE: string

public static DOWN: string

public static END: string

public static ENTER: string

public static EQUALS: string

public static ESCAPE: string

public static F1: string

public static F10: string

public static F11: string

public static F12: string

public static F2: string

public static F3: string

public static F4: string

public static F5: string

public static F6: string

public static F7: string

public static F8: string

public static F9: string

public static HELP: string

public static HOME: string

public static INSERT: string

public static LEFT: string

public static META: string

public static MULTIPLY: string

public static NULL: string

public static NUMPAD0: string

public static NUMPAD1: string

public static NUMPAD2: string

public static NUMPAD3: string

public static NUMPAD4: string

public static NUMPAD5: string

public static NUMPAD6: string

public static NUMPAD7: string

public static NUMPAD8: string

public static NUMPAD9: string

public static PAGE_DOWN: string

public static PAGE_UP: string

public static PAUSE: string

public static RETURN: string

public static RIGHT: string

public static SEMICOLON: string

public static SEPARATOR: string

public static SHIFT: string

public static SPACE: string

public static SUBTRACT: string

public static TAB: string

public static UP: string

Methods

public static chord(var_args?: Array<string>): string

Simulate pressing many keys at once in a "chord". Takes a sequence of {@link webdriver.Key}s or strings, appends each of the values to a string, and adds the chord termination key ({@link webdriver.Key.NULL}) and returns the resultant string.

Note: when the low-level webdriver key handlers see Keys.NULL, active modifier keys (CTRL/ALT/SHIFT/etc) release via a keyup event.

see

http://code.google.com/p/webdriver/issues/detail?id=79

Parameters

  • var_args?: Array<string> optional

    The key sequence to concatenate.

Returns

string

The null-terminated key sequence.