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

Optional by … find hints may apply where the target is an element label (for example wait for).

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