Software Testing / Learning brief

Tom stops waiting by the clock

What this means in plain language

Tom's test pauses for a few seconds before every click, and it is slow. A waiter who looks before seating a guest shows what Playwright checks for you, and which waits it cannot do for the page.

Understand the full idea, step by step

A good waiter looks first. Is the table there? Is it clean? Is anyone still sitting down? Only then does the waiter seat you. A poor waiter seats you at once, and you land in the wrong place.

Tom's test is the guest. Playwright is a free tool that drives a real browser. It must click Add task on Daily List, a to-do list app, while the page is still busy.

PLAIN WORDS · 1 in this section
playwright
a free Microsoft tool that drives a browser for tests

Evidence & review

REVIEWED 2026-10-18

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.

Playwright auto-waiting as taught in this academy, with an invented app and invented people. Playwright changes often, so check the current guide.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts, and no real run was made. The waiter is a teaching picture.

Sources for this brief — 6 sources
  1. Market practice

    Auto-waiting (Playwright documentation) ↗ — Microsoft (Playwright) · Playwright checks that the locator resolves to one element, and that the element is visible, stable, receiving events and enabled, as the action needs; stable means the same bounding box over at least two animation frames; it fails with a timeout error if the checks 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.

  2. Market practice

    Auto-waiting (Playwright documentation) ↗ — Microsoft (Playwright) · Click, double click and check need visible, stable, receives events and enabled; hover and drag drop the enabled check; fill and clear need visible, enabled and editable; select option needs visible and enabled; force skips non-essential checks (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.

  3. Market practice

    Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Avoid fixed waits; use web-first assertions that retry (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).

  4. Market practice

    Timeouts (Playwright documentation) ↗ — Microsoft (Playwright) · The action timeout defaults to no limit of its own, so the test timeout ends a long wait; it can be set in the config or on one call (search excerpt, page not opened)

    Describes the test timeout (30 seconds by default at the time of writing, covering the test body, fixtures and beforeEach hooks), the expect timeout (5 seconds by default at the time of writing), the action and navigation timeouts set under use in the config (no limit by default), test.setTimeout, test.slow (triple the test timeout), the separate timeout of beforeAll and afterAll hooks and the global timeout. Says the expect timeout can be overridden per assertion. Default values change between releases, so lessons say 'at the time of writing' or leave them out. Vendor documentation for one tool. Practitioner guidance, not a standard. · 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.

  5. Market practice

    Waiting strategies (Selenium documentation) ↗ — Selenium project · Do not mix implicit and explicit waits, because the wait times become unpredictable (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.

  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.

Learn this properly

START HEREAuto-waiting: what Playwright checks before it actsBefore it clicks or types, Playwright waits until the element is ready, so most hand-written waits are not needed. Learn what it checks and what it cannot.Opens at L0 Explain simply · about 18 min

Related briefs

Tom marks the stops

Tom practises building keywords and choosing regression tests after a change. A phrase book and a trip plan show him how.

READ BRIEF

Tom asks: clock or plant?

Mei gives Tom practice questions on locked and adaptive systems, statistics, the oracle problem and test levels. He learns to ask whether a system changes after release and whether an option is a cause or a cure.

READ BRIEF