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

ParameterRequiredDescription
KeysYesThe keys to press, recorded in the keyboard modal and sent in order.
Ignore error on this stepNoThe 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?

Fill input

Type text into a field before pressing Enter

Verify element

Check what the key press changed on the page

Last updated on