Method KeyPress
Presses any single key (number) in the ApplicationUsage
Function KeyPress(
String Key,
Boolean Report [Optional]
)
Parameters
Key
Type: String
Key (character) to press
Report (optional)
Type: Boolean
Default value: true
Report this step to results
Returns
No return value
Example
VBScript
Application("Demo").KeyPress "Enter"
// Remove this step from report
Application("Demo").KeyPress "Enter", false
JavaScript
Application("Demo").KeyPress("Enter");
// Remove this step from report
Application("Demo").KeyPress("Enter", false);
Documentation Categories
![](https://www.zaptest.com/wp-content/uploads/2022/02/1SCRIPT_STEP.jpg)
ZAPTEST
![](https://www.zaptest.com/wp-content/uploads/2022/02/FARM.jpg)
FARM
![](https://www.zaptest.com/wp-content/uploads/2022/02/LOAD.jpg)
Comment
Press "Enter" key