Press keyboard keys in a web test
Send keyboard keys and shortcuts to the page: Enter to submit, Escape to close a modal, Tab to move focus, or combinations like Ctrl+A.
The step presses keys the way a user would at the keyboard. In the builder, you record them in a small keyboard modal: press the keys you want to send, and they are stored in order.
Parameters
| Parameter | Required | Description |
|---|---|---|
| Keys | Yes | The keys to press, recorded in the keyboard modal and sent in order. |
| Ignore error on this step | No | The run continues with the next step if this one fails. Default: off. |
This step does not target an element: the keys go to the element that is active on the page (the one that has focus). Use Click or Fill input first to make the right element active.
Results and metrics
- Timing: start, end, and duration (in seconds) recorded in the step result.
- Status: success, warning, or failed, with the error message on failure.
- Screenshot: captured after the keys are sent.
What's next?
Last updated on