Method KeyPress

Presses any single key (number) in the Application

Usage

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

ZAPTEST

FARM

LOAD