Method KeyPress

Presses any single key (number) in the Application

Usage

Function KeyPress( 
        String Key,
        Boolean Report [Optional]
)

Application

ZAP Object step

KeyPress

Enter

true

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

Script-Less next step

Application

ZAP Object step

KeyPress

Enter

Script-Less next step

Comment

Remove this step from report

Script-Less next step

Application

ZAP Object step

KeyPress

Enter

false