StrikekitStrikekit

wait

Poll until an element, text, or URL condition is met

Wait steps poll until a condition succeeds (or the timeout fails the step).

Forms

FormMeaning
wait for "<label>"Until a labeled element is visible
wait for see "<text>"Until text appears
wait until not see "<text>"Until text disappears
wait until be on "<fragment>"Until URL contains fragment
wait for url contains "<fragment>"Until URL contains fragment
wait for network idleUntil Playwright networkidle load state
wait for response "<fragment>"Until a browser response URL contains the fragment (UI XHR)

Examples

And I wait for "dashboard"
And I wait for see "Saved successfully"
And I wait until not see "Loading..."
And I wait until be on "/dashboard"
And I wait for url contains "checkout"
And I wait for network idle
And I wait for response "/api/orders"

Qualifiers

QualifierRole
forWait until labeled element is visible
for seeWait until text appears
until not seeWait until text is gone
until be onWait until URL contains fragment
for url containsWait until URL contains fragment
for network idleWait until network is idle (no value)
for responseWait until a browser response URL contains the fragment

Requirements

ItemContract
Element / control shapewait for — general resolve, then poll until visible. for see / until not see — page (or iframe-scoped) text, any element. URL / network / response waits — no element
How the label bindsOptional by … on wait for element labels
Qualifiers that change resolveSee Forms table above
PlatformWeb UI waits; not Platform: api (use api wait for HTTP poll)
Wrong shape → use insteadWaiting for URL → until be on / for url contains, not wait for

When it fails

  • Element wait timeout — label missed or control never becomes visible (often wrong shape).
  • Text wait timeout — text never appears/disappears in scope.

See also UI contracts.

Notes

  • wait for response is a UI XHR wait (browser), not Platform: api. For HTTP API polling see api wait.
  • Page-level waits (for network idle, for response) do not use action-resolve auto-wait.

On this page