Skip to main content

Steps

Steps are a list of maps. A step may combine keys (e.g. at + code, or element + contains). Unknown keys are ignored.

- at: /
- at: /contact.html
code: 200
- at: /secret
code: 302
to: /login.html
KeyMeaning
atURL or path (supports {placeholders})
codeExpected HTTP status
toExpected 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​

KeyContextPurpose
atstepNavigate
codewith atExpected status
towith atExpected redirect Location
elementstepCSS selector
countwith elementExact match count
contains / equals / lackswith elementText / attribute asserts
attributewith elementAttribute read/compare
setwith elementFill / select
thenwith settab or enter
triggerwith elementclick
waitstepnetworkidle or minutes
summarystepHuman 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).