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

Check Focused

Check a specific element is currently focused.

Check Focused confirms keyboard focus is on the Element. Use it to prove tab order, autofocus, or post-click focus landed on the right control.

See Element states for how focus fits with the other Element state checks.

Check focused Test Step

When to use it

  • Confirm the first field is focused when a form opens.

  • Verify focus moved to an error field after failed validation.

  • Pair with Check Not Focused when focus should leave a control.

Configure

Basics

Field
What to set

Element

The Element to check

Advanced

Field
What to set

Status on fail

When should screenshots be taken?

Always or On Failures (default)

Tags: check, is, focused, test, expect, assert, element, state

Last updated