<key-press>

The <key-press> element will enter a single keystroke, mimicking that keystroke on a standard keyboard. This element includes the option of including key the combinations using the Alt, Ctrl, and/or Shift keys. Only a single character or keystroke can be set using the <key-press> element.

Structure

Contains:
  • None
Contained By:
  • <script>
Attributes
Name Description Data Type Default Value Required
key This attribute specifies the key stroke to enter. This may be one of the following values:
  • Any single printable character
  • “backspace” - The backspace key.
  • “tab” - The Tab key.
  • “enter” - The Enter/Return key.
  • “return” - The Enter/Return key.
  • “pause” - The Pause key.
  • “esc” - The Escape (Esc) key.
  • “space” - The spacebar.
  • “page up” - The Page Up key.
  • “page down” - The Page Down key.
  • “end” - The End key.
  • “home” - The Home key.
  • “left” - The left arrow key.
  • “right” - The right arrow key.
  • “up” - The up arrow key.
  • “down” - The down arrow key.
  • “print screen” - The Print Screen key.
  • “insert” - The Insert key.
  • “delete” The Delete key.
  • “Fn” - n is any numeric value from 1 to 24. That function key is then pressed.
character None Yes
shift This attribute specifies whether to depress the Shift key in combination with the key attribute. The value t is true and will depress the Shift key. The value f is false. Boolean f No
ctrl This attribute specifies whether to depress the Ctrl key in combination with the key attribute. The value t is true and will depress the Ctrl key. The value f is false. Boolean f No
alt This attribute specifies whether to depress the Alt key in combination with the key attribute. The value t is true and will depress the Alt key. The value f is false. Boolean f No
common script attributes A set of related attributes common to most elements within the Agentry Test Script. N/A N/A N/A