Manuals / Playwright with Python / Chapter 14

Part 2 · Core Interactions · beginner · ~40 min · Chapter 14 of 61

8. Waits & Auto-waiting

Before performing most actions, Playwright runs through an actionability checklist on the target element: 1. Attached — is it in the DOM at all?

Path progress
22%

Step 1 of 6

Overview

Before performing most actions, Playwright runs through an actionability checklist on the target element: 1. Attached — is it in the DOM at all? 2. Visible — non-zero size, not display: none/visibility: hidden? 3. Stable — stopped moving/animating (checked across at least two animation frames)? 4. Enabled — not disabled?

OverviewDrag stickies · tap for tips
Study mapDrag stickies · tap for tipsKeep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Assert the UIdrag · tap →Retry wiselydrag · tap →Seed datadrag · tap →Close the loopdrag · tap →Keep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Pathwise hackdrag · tap →Page under testdrag · tap →Multi-browserdrag · tap →Automation pathdrag · tap →Tooling nodedrag · tap →
Was this step clear?
Chapter learning outcomes
  • 5. Receives events — not covered by another element (e.g., a loading spinner ove

Clear these before you leave

Side quest

8. Waits & Auto-waiting deliverable

Apply one idea from “Overview” in a small script or note.