Software Testing / Learning brief

Tom knocks and waits

What this means in plain language

After Lily taps Save, a message appears a moment later, and Tom's check keeps looking too soon. A story of knocking and waiting for the right thing, with a toy run that shows why a fixed pause is a guess.

Understand the full idea, step by step

You knock at a door and wait. If nobody comes in a moment, you wait a little longer. You do not shout every second, and you do not stand there all day. You stop when the door opens or when you have waited long enough.

Daily List, a to-do list app, shows a message, Saved, a moment after Lily taps Save. Tom's check looks for it at once and fails.

Evidence & review

REVIEWED 2026-10-21

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Waits as taught in this academy, with an invented app. The numbers came from a toy run, not from a real browser.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The door is a teaching picture. The toy run was done for real but is not a timing of any real tool.

Sources for this brief — 7 sources
  1. Market practice

    Waiting strategies (Selenium documentation) ↗ — Selenium project · Do not mix implicit and explicit waits; an implicit wait polls for a single element until found or the timeout ends; the default implicit wait is zero (search excerpt, page not opened)

    Per the search excerpt, an implicit wait is a session-wide setting for element lookups, an explicit wait polls for one named condition, and mixing the two can cause unpredictable wait times. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Eradicating Non-Determinism in Tests (Martin Fowler) ↗ — Martin Fowler · Never use bare sleeps to wait for asynchronous responses; use a callback or polling, and still keep a timeout (search excerpt, page not opened)

    Names isolation, asynchronous behaviour and quarantine as ways to handle non-deterministic tests, and advises against bare sleeps in favour of callbacks or polling with a timeout. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Auto-waiting (Playwright documentation) ↗ — Microsoft (Playwright) · Playwright runs actionability checks before each action and fails with a timeout error if they do not pass in time (search excerpt, page not opened)

    Says Playwright runs actionability checks (visible, stable, enabled, receives events) before an action and fails with a timeout error if they do not pass in time. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-11-06

    Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.

  4. Market practice

    Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Avoid fixed waits; waitForTimeout is for debugging and tests that use it become flaky (search excerpt, page not opened)

    Recommends user-facing locators such as role-based ones over Cascading Style Sheets (CSS) or XPath, web-first assertions that retry, and avoiding fixed waits. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. A second search on 2026-10-20 returned this page for its title and matched the described content; the page was still not opened (search excerpt, page not opened).

  5. Market practice

    WebDriver, World Wide Web Consortium Recommendation ↗ — World Wide Web Consortium · The WebDriver standard defines timeouts for the session (search excerpt, page not opened)

    Defines the HyperText Transfer Protocol (HTTP) command set of the WebDriver protocol. New Session is POST /session. Find Element is POST /session/{session id}/element. Element Click is POST on the element click path. Error codes include element not interactable and element click intercepted. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  6. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

  7. Market practice

    Retry-ability in Cypress (Cypress documentation) ↗ — Cypress · A passed mid-chain assertion can preserve a stale subject; requery after the boundary when the page may replace elements. (primary page opened and read, 2026-10-21)

    Says Cypress commands are queued, queries retry as a chain while commands such as click run once, and an assertion mid-chain is a retry boundary. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-22

    Opened and read on 2026-10-22. The sections on queries, assertions as retry boundaries, and splitting chains explain why a passed assertion can keep a subject that the app later replaces. A new query starts from the page again. A should callback can keep related read-only checks together. This is vendor documentation, not a standard. No edition number is stated.

Learn this properly

START HEREWaits and timing in automated checksMake a check wait for the right thing, not for a fixed time, and tell explicit, implicit and automatic waits apart.Opens at L0 Explain simply · about 18 min

Also covered in Locators: finding an element with CSS selectors and XPath.

Related briefs

Tom is off on Monday

Tom goes on leave for two weeks and Mei will cover his testing. A week early, Tom writes a note with the state of the release, the decisions he left open and why, where to explore, and who to call.

READ BRIEF