Send Keystrokes

This is pre-built Action located under the @Browser Element, instructs the Avo Assure to send the specified keystroke(s) within the browser.

Syntax

Input: <FunctionKey>;<Number(optional)>

  • FunctionKey: Function Key’s name on the keyboard.

  • Number: The second input specifies the number of times the specified keystrokes must be performed

Note: Multiple keys as input are not supported. For example: “ctrl+A” is not supported.

Use the setFocus keyword before this if the intention is to work on a specific object within the browser.

Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)

Usecase/Example

Simulates pressing function keys on the active window or element.

The Send Keystrokes action takes the value from the Input Value column (e.g., F5;3) and sends the specified function key the given number of times. If the number is not provided, the key is sent once by default. The result of the operation is stored in the {KeystrokeStatus} variable, with the following possible values: True – if the keystroke is sent successfully. False – if sending the keystroke fails or an error occurs.

Input

Enter

Expected Result

The Send Keystrokes Action should perform action for pressing Enter key.

Output

Once the Send Keystrokes Action executed, “Enter” key press is performed on the focused object within the browser.

Last updated

Was this helpful?