Steps
Steps are a list of maps. A step may combine keys (e.g. at + code, or element + contains). Unknown keys are ignored.
Navigate — at
- at: /
- at: /contact.html
code: 200
- at: /secret
code: 302
to: /login.html
| Key | Meaning |
|---|---|
at | URL or path (supports {placeholders}) |
code | Expected HTTP status |
to | Expected redirect Location; runner follows and expects 200 on the target |
Assert / interact — element
- element: h1
contains: Smky
- element: form#feedback
count: 1
- element: "input[name='name']"
set: Ada
then: tab
- element: "input[type='submit']"
trigger: click
Wait — wait
- wait: networkidle
# - wait: 0.2 # minutes (× 60_000 ms)
Step key reference
| Key | Context | Purpose |
|---|---|---|
at | step | Navigate |
code | with at | Expected status |
to | with at | Expected redirect Location |
element | step | CSS selector |
count | with element | Exact match count |
contains / equals / lacks | with element | Text / attribute asserts |
attribute | with element | Attribute read/compare |
set | with element | Fill / select |
then | with set | tab or enter |
trigger | with element | click |
wait | step | networkidle or minutes |
summary | step | Human note only |
Out of scope for core YAML
Use ordinary Playwright specs for clipboard checks, arbitrary shell mid-steps, first-class isVisible, or scenario-level roles (document-level roles is the established pattern).