Wait Steps

Every wait phrasing in the suite. All Behavior Based Robotics (BBR) backed, so QA stops fighting with sleep N. CI / CD lanes run faster and more reliably.

Step phrasings in this group

The book sidebar lists each individual step page under this group.

When I wait for 1 second

Wait UP TO N seconds for the page to settle. Returns early on idle.

When I wait for 1 second for AJAX to finish

Wait UP TO N seconds for the page (and AJAX) to settle. Returns early.

When I wait 1 second

Wait UP TO a number of seconds for the page to settle.

When I wait max of 1 second

Wait UP TO a maximum number of seconds for the page to settle.

When I wait 1 minute

Wait UP TO a number of minutes for the page to settle.

When I wait max of 1 minute

Wait UP TO a maximum number of minutes for the page to settle.

When I wait until the page is loaded

Wait until the page is loaded.

When I wait for AJAX to finish

Wait for active XHR/fetch requests to complete.

When I wait for the modal to appear

Wait for a modal dialog to appear or disappear.

When I wait for "#dashboard" to appear

Wait until a CSS selector becomes visible. Returns the moment the

When I wait for "#loading-spinner" to disappear

Wait until a CSS selector becomes hidden (display:none, visibility:hidden,

When I wait for the text "Dashboard" to appear

Wait until visible text appears anywhere on the page.

When I wait for the text "Loading…" to disappear

Wait until visible text is gone from the page.

When I wait until the URL contains "/dashboard"

Wait until the current URL contains a fragment.

When I wait until the page title is "Dashboard - MyApp"

Wait until document.title equals (is) or contains the given value.

When I wait until 5 elements match ".product-card"

Wait until exactly N elements match a CSS selector.

When I wait until at least 3 elements match ".item"

Wait until at least N elements match a CSS selector.

When I wait until the network is idle

Wait until the network goes quiet (full smart settle, 10 s budget).

When I wait until the page is interactive

Wait until the page is interactive (DOMContentLoaded + body attached).

When I wait until pending timers settle

Wait until every tracked setTimeout callback has fired.

Then eventually I should see "Done"

Pollable text assertion retries the inner step until passing or timeout.

Back to all step groups