keyPressAndWait (UI Automation - Manipulation)
Compatible with:
- Purpose
- Generated from keyPress(locator, keySequence)
- This command simulates the action of pressing and releasing a key.
- Syntax
- keyPressAndWait(locator, keySequence)
- Target
- locator - An element locator pointing to an element or an element itself.
- Value
- keySequence - Either be a string(\"\\\" followed by the numeric keycode of the key to being pressed, normally the ASCII value of that key), or a single character. For example: \"w\", \"\\119\".
- Return Value
- Simulates a user pressing and releasing a key.