pw·handbook
Levels Domain Projects Capstones Search GitHub
level 03 / advanced-playwright

Advanced Playwright

Contexts, frames, shadow DOM, network interception, auth, and everything production suites need.

Browser Contexts & Multi-Tab

The browser → context → page hierarchy, test isolation, multi-tab and multi-window flows — the model underneath every Playwright test.

35 min

Frames & Shadow DOM

Locating elements inside iframes and shadow roots — the two DOM boundaries that break naive selectors.

30 min practice: The Internet — Frames

Advanced Interactions

File upload and download, drag and drop, geolocation, permissions, and browser dialogs — the interactions beyond click and fill.

35 min practice: The Internet

Network Interception & Mocking

route(), fulfill, abort, modify — plus HAR recording. Control every network request your app makes and test states the backend can't give you.

40 min

Authentication & Sessions

storageState, setup projects, and multi-role auth — log in once, reuse everywhere, and keep your suite fast.

35 min

Debugging & Trace Viewer

Trace viewer, UI mode, --debug, codegen, videos and screenshots — find why a test failed in CI without rerunning it twenty times.

25 min
pw·handbook — production-grade Playwright engineering, level by level.
Home · Playwright Docs · MIT License