Playwright / Quiz
The Waits Playwright Fights for You
Actionability checks, the death of sleep(3000), and what a click actually waits for before it fires.
- Difficulty
- Easy
- Format
- Quiz
- Points
- 100
- Estimate
- 10 min
// MISSION BRIEF
Your Mission
Half of all flaky UI tests are timing bugs. Playwright's answer is auto-waiting: every action runs a set of actionability checks and retries until the element is genuinely ready.
Know exactly what those checks are and you can delete every waitForTimeout in the repo. Guess, and you will reinvent flake with extra steps.
Speed bonus active.
// FIRST CONTACT
Battle teaser
Before performing `locator.click()`, Playwright automatically waits for which conditions?
- AElement is visible, stable (not animating), receives pointer events (not covered), and enabled
- BOnly that the element exists in the DOM
- CThe page's load event and all network requests to finish
- DA fixed 500ms grace period
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
playwrightauto-waitingactionabilityflakinesse2e-testing