For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send Keys

Send keyboard keys, including special keys such as Enter and Tab.

Send keys presses keyboard keys in the browser. Use it for shortcuts and special keys such as Enter, Tab, or Escape. Prefer Set value when you only need to fill an input with text.

Send keys Test Step

When to use it

  • Submit a form with Enter after Set value.

  • Move focus with Tab, or dismiss a dialog with Escape.

  • Hold modifiers such as Ctrl or Shift for shortcuts.

Configure

Basics

Field
What to set

Focus

Element focus (default) focuses the Element first. Retain current leaves focus where it is

Element

Required when Focus is Element focus

Keys

Keys to send (supports special key tokens in the field)

Advanced

Field
What to set

Modifiers

Optional Shift, Ctrl, Windows, or Alt

Status on fail

When should screenshots be taken?

Always (default) or On Failures

Pro tip: Use Set value for the text, then Send keys with Enter when the app submits on keyboard rather than a button click.

Tags: action, input, sendKeys, keyboard, keys

Last updated