Method Zap.Keyboard.KeyPress
1 of 2 declarations
Presses any single key (character) in the Application
Usage
Function Zap.Keyboard.KeyPress(
String Key,
Boolean Report [Optional]
)
ZAP Utility

Zap.Key...KeyPress
Enter
true
String Key
Boolean Report
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
Zap.Keyboard.KeyPress "Enter"
'Remove this step from report
Zap.Keyboard.KeyPress "Enter", false
JavaScript
Zap.Keyboard.KeyPress("Enter");
// Remove this step from report
Zap.Keyboard.KeyPress("Enter", false);

ZAP Utility

Zap.Key...KeyPress
Enter

Comment
Remove this step from report

ZAP Utility

Zap.Key...KeyPress
Enter
false
Method Zap.Keyboard.KeyPress
2 of 2 declarations
Presses any single key (number) in the Application
Usage
Function Zap.Keyboard.KeyPress(
Integer Key,
Boolean Report [Optional]
)
ZAP Utility

Zap.Key...KeyPress
13
true
Integer Key
Boolean Report
Parameters
Key
Type: Integer
Number of the key to press (i.e. 13 = Enter, 40 = Down Arrow)
Report (Optional)
Type: Boolean
Default value: true
Report this step to results
Returns
No return value
Example
VBScript
Zap.Keyboard.KeyPress 13 'Enter
'Remove this step from report
Zap.Keyboard.KeyPress 13, false
JavaScript
Zap.Keyboard.KeyPress(13); // Enter
// Remove this step from report
Zap.Keyboard.KeyPress(13, false);
Comment
Press "Enter" key, it has code 13

ZAP Utility

Zap.Key...KeyPress
13

Comment
Remove this step from report

ZAP Utility

Zap.Key...KeyPress
13
false
Comment
Press "Enter" key