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);
Comment
Press "Enter" key