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.

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)
Related
Tags: check, is, focused, test, expect, assert, element, state
Last updated