toggle
Toggle a labeled checkbox or switch-like control
Toggle a checkable / switch-like control once (click after resolve). Prefer this when authors want clearer intent than a plain click.
Syntax
When I toggle "<label>" [by …]Examples
When I toggle "Dark mode"
Then I should have "Dark mode" be checkedNotes
- Uses action resolve auto-wait (~30s).
- Fails if the resolved control is not checkable / switch-like.
- Often interchangeable with
click on+should have … be checked. - Web only for v1.