Press Key

This action emulates pressing a key on the keyboard.

The found tag can be any tag, that can assume focus and receive keyboard events.

This action is useful for sending key presses, like <TAB>.

Properties

The Press Key action can be configured using the following properties:

Key to press

The key to press.

Predefined

Select from the list. The list of predefined keys contains the most commonly used keys.

Value

Specify a value of the key to press. The value must be one of the Qt key codes in a decimal number. For the key names used by Qt, see the Qt documentation.

Variable

Specify a variable that contains the key code of the key to press. The key code must be one of the Qt key codes in a decimal number.

Expression

Specify an expression.

Converters

Specify a converter.

Focus on element

Focus on the element before pressing the key.

Continue when
Add a wait criterion for the step. If you have several wait criteria, execution stops when any wait criterion is met. You can have several met wait criteria such as if you are waiting for two HTML elements that appear on the same load, or if you are waiting for an element on the main frame, and Initial Page Load Completes is set. For more information, see Use Wait Criteria.
Options

The robot's options can be overridden with the step's own options. An option that is marked with an asterisk in the Options Dialog will override the one from the robot's configuration. All other options will be the same as specified for the robot.