Press a key
Press a key
Simulates pressing a keyboard key on an element of the web page. It handles special keys such as Enter, Tab and Escape, and combinations such as Control+C.
Options
Select the action
The action's mode.
By browser
Presses the key on an element found by CSS selector.
Browser or page ID
The browser, tab or iframe opening action used as the context.
Element selector
The CSS selector identifying the element that receives the key press, input#search for example.
By element
Presses the key on an element captured earlier by a Get element action.
Element ID
The action that captured the element receiving the key.
By element list
Presses the key on an element from a list captured by a Get elements action.
Element list ID
The action that captured the list.
The list index
The element's position in the list. The index starts at 0.
Key
The key, or combination of keys, the robot presses. Pick from the list or type it yourself — Enter, Tab, Control+C or Shift+Tab, for example.
Delay in milliseconds
How long to wait between each press when the counter is above 1. Default: 125.
Counter
How many times the key is pressed. The minimum is 1.
Returns
This action has no returns.
Rules and conditions
- Select the action has to be set before the other fields.
- In By browser mode, Browser or page ID and Element selector are both required.
- If the element is not found on the page, the action ends in an error.