API …
Playwright lab

Actionability checks

Disabled, covered, moving, off-screen and re-rendered elements: see what Playwright waits for before it acts.

Practice tasks

  • Click “Submit order” right after pressing “Enable in 2 s”: no sleep, Playwright waits for enabled.
  • Click the covered button; read the “intercepts pointer events” retry log from the call log, then remove the overlay.
  • Click the moving button and explain the stable check; then stop the animation and compare.
  • Click the off-screen button inside the scroll box and confirm Playwright scrolled it into view.
  • Use fill() on the read-only input: observe the wait for editable, then use force or wait for the unlock.
  • Use hover() to reveal the hidden button, then click it. Try locator.click({ trial: true }) first.
  • Click the re-rendering button twice in a row and explain why the locator never goes stale.
  • Use check(), uncheck() and setChecked() on the checkbox and assert with toBeChecked().

More Playwright lab practice