★Welcome — Ultimate SDET Ebook
This is a comprehensive reference for becoming a strong SDET specialising in Playwright. Every concept has explanation, code, diagram and an interview Q&A bank. Open in any browser; no install required.
📌 Playwright Version — Written for v1.61.0
This book and its associated project workspaces (Manual QA Test Plan, Playwright BDD E2E Suite, Playwright API Test Suite, Playwright Component Test Suite, Playwright Accessibility Test Suite) are written and tested against @playwright/test version 1.61.0 (released November 2025). Most project configurations declare ^1.61.0 to ensure compatibility with modern features.
Why 1.61.0 specifically?
| Reason | What it gives you |
|---|---|
| Stable LTS-grade release | 1.61 is the November-2025 stable line, well past its breaking-bug shakeout. Safe for CI and production test suites. |
| Project dependencies (1.31+) | You can chain projects (dependencies: ['setup']) — used in your BDD & auth-state patterns. |
| Blob reports + merge-reports (1.37+) | Required for the --shard + merged HTML report flow in your GitHub Actions QA Pipeline. |
| UI Mode (1.32+) & Trace Viewer v2 | npx playwright test --ui — the dev-loop you actually use day-to-day. |
test.step.skip & soft assertions (1.38+) | Used in your accessibility suite to mark known-broken steps without failing the run. |
| Component Testing (experimental, 1.43+) | Powers your Playwright Component Test Suite via @playwright/experimental-ct-react. |
| Locator handlers (1.42+) | page.addLocatorHandler() for auto-dismissing surprise dialogs/cookie banners. |
| Aria snapshots (1.49+) | expect(locator).toMatchAriaSnapshot() — feeds your accessibility-first assertion style. |
| Agents & MCP server (1.55+) | npx playwright init-agents — wires Claude/Cursor into Playwright; matches your AI-in-Testing module. |
| Node.js 18+ requirement | Modern async, native fetch, structuredClone — your existing Node version is already compatible. |
How to verify your version
npx playwright --version # prints: Version 1.61.0 npm ls @playwright/test # shows resolved version + tree cat node_modules/@playwright/test/package.json | grep '"version"'
Upgrade guidance for interviews
- Pin in CI —
"@playwright/test": "1.61.0"(exact, no caret) so CI is reproducible and browser binaries match. - Match the Docker image —
mcr.microsoft.com/playwright:v1.61.0-jammy. Mismatch between library version and image is the #1 cause of CI-only failures. - Always run
npx playwright install --with-depsafter a version bump — browser binaries are version-locked to the library. - Read the release notes before each bump — github.com/microsoft/playwright/releases.
How to use this book
- Left sidebar is grouped by category. Click any topic to jump.
- Search box at the top of the sidebar filters topics by keyword.
- Q&A blocks are collapsible — try to answer in your head before opening the answer.
- Code blocks are syntax-highlighted; copy-paste freely.
- Bookmark the page in your browser (Cmd/Ctrl+D) for easy access.
Suggested reading paths
Path A · Beginner → Job-ready (8–12 weeks)
- Manual Testing Foundations (33)
- JavaScript Masterclass (2)
- TypeScript Crash Course (3)
- Playwright Architecture (4)
- Locators & UI (6) + Playground (9)
- Fixtures & Config (7)
- Network & Advanced (8)
- API Testing (17) + HTTP Codes (18) + Postman (20)
- CI/CD (26) + Flakiness (32)
- DB Testing (21)
- Behavioral (67) + Coding Round (62)
- Interview by Experience (69) + Cheat Sheet (16)
Path B · Senior / 5+ years interview prep (2–3 weeks)
- Architecture (4) — be sharp on internals
- Locators / Strict / Narrowing (6)
- Fixtures (7) + Architecture (34)
- API Chaining (19) + REST Assured (24)
- System Design (36) — the differentiator
- Test Data Management (38)
- BDD/Cucumber (35) + AI testing (43)
- Cloud Execution (31)
- Flakiness deep-dive (32)
- Extended Coding Round (63)
- Interview Q&A by Experience (69)
- Behavioral & Scenario (67)
Path C · Already-know-Playwright, going broad
- API Chaining (19)
- Visual (11) + A11y (12) + Performance (13) + Mobile (14)
- Popups deep-dive (10)
- Postman (20) + HTTP Codes (18)
- AI & MCP (43)
- System Design (36)
Path D · Coding round only
- Coding Round (62) — patterns + 12 problems
- Extended Coding Round (63) — 24 more problems
- JavaScript (2) — language pitfalls in interviews
- TypeScript (3) — types for solutions
- Behavioral (67) — soft skill
What's in this book (full index)
| # | Module | What it covers |
|---|---|---|
| ★ | Home | This page — orientation + reading paths |
| PLAYWRIGHT CORE | ||
| 4 | Architecture & Internals | Client–server, CDP vs WebDriver, Browser/Context/Page, auto-wait |
| 6 | Locators & UI Testing | All locators, strict mode, narrowing, every UI interaction, web-first assertions |
| 7 | Fixtures, Parallelism, Config | Custom fixtures, workers, storageState, projects, full config |
| 8 | Network & Advanced | page.route, mocking, HAR, Trace Viewer, debugging tools |
| 9 | Locator Playground | Interactive — paste HTML, try locators live |
| 11 | Visual Regression | toHaveScreenshot, baselines, masking, CI diffs |
| 12 | Accessibility Testing | axe-core, role checks, keyboard, CI gating |
| 13 | Performance Testing | Web Vitals, Lighthouse, throttling, budgets |
| 14 | Mobile & Device Emulation | Profiles, touch, geo, orientation, dark mode |
| 10 | Popups, Alerts, Windows | Every event, dialog edge cases, tab-with-waiting-alert |
| 16 | Playwright Cheat Sheet | Quick reference of all APIs |
| API & BACKEND | ||
| 17 | API Testing | REST principles, APIRequestContext, schema, hybrid tests |
| 24 | REST Assured (Java) | Given/When/Then, JSONPath, OAuth, POJO, vs Playwright |
| 19 | API Chaining | Sequential vs DAG chains, fixtures, cleanup, idempotency |
| 20 | Postman Deep-Dive | Every auth type, JWT, OAuth1 vs OAuth2, Newman, mocks |
| 18 | HTTP Status Codes | Every 1xx-5xx, headers, methods, caching, idempotency |
| 21 | Database Testing | JDBC, Node pg, SQL essentials, data integrity assertions |
| LANGUAGES | ||
| 2 | JavaScript Masterclass | Scope, closures, this, event loop, async, modules, pitfalls |
| 3 | TypeScript Crash Course | Types, generics, narrowing, utility types, tsconfig |
| 15 | Playwright with Python | Sync/async API, pytest fixtures, parity with TS |
| CI / DEVOPS / CLOUD | ||
| 26 | CI/CD with GitHub Actions | Full pipeline, sharding, caching, artifacts, retries |
| 31 | Cloud Execution & BrowserStack | Remote runners, cloud parallelism, cross-device farms |
| 32 | Flakiness: Local vs CI | Diagnostic playbook — why tests pass locally and fail on CI |
| SDET FOUNDATIONS | ||
| 33 | Manual Testing Foundations | SDLC/STLC, test types, defect lifecycle, agile testing |
| 37 | Left-Shift & Right-Shift | Shift-left in dev, contract tests, prod observability |
| 38 | Test Data Management | Strategies, synthetic data, PII masking, env separation |
| 34 | Test Automation Architecture | Framework layers, POM, patterns, anti-patterns |
| 36 | SDET System Design | Designing a test platform end-to-end |
| ADVANCED & MODERN | ||
| 35 | BDD with Cucumber | Gherkin, steps, hooks, Cucumber + Playwright |
| 43 | AI in Testing · MCP · Agents | LLM testing, MCP, Playwright Agents, AI-assisted authoring |
| INTERVIEW PREP | ||
| 62 | Coding Round (DSA) | Patterns + 12 worked TS problems with explanations |
| 63 | Extended Coding Round | 24 more problems including SDET-flavoured (debounce, retry, deep-equal) |
| 67 | Behavioral & Scenario | OOP-in-POM, flaky-test answers, "how would you test X" |
| 69 | Interview Q&A by Experience | 1y / 3y / 5y / 8y questions tiered with answers |
| 71 | Final Review & Gaps | Self-review notes, what's missing, where to go next |
| DEEP-DIVES & EXTRAS | ||
| 60 | Blockchain & DLT | Bitcoin, Ethereum, EVM, smart contracts, ERC standards, testing dApps |
| 61 | DSA Fundamentals | Complexity, data structures, sorting, recursion, DP |
| 65 | System Design Fundamentals | Scaling, sharding, caching, CAP, queues, consistency |
| 39 | Mocking Strategies | Mock vs stub vs fake vs spy, network/DB/time mocking |
| 40 | Reporting & Observability | All reporters, dashboards, KPIs |
| 25 | Git for SDETs | Branches, rebase, bisect, stash, hooks |
| 50 | XPath Deep-Dive Practice | Every axis, function, edge case with code |
| OTHER TOOLS & FRAMEWORKS | ||
| 44 | Selenium WebDriver | Architecture, Selenium 4, locators, waits, Grid |
| 47 | Java for SDET | OOP, collections, generics, streams, threading |
| 45 | Cypress (full) | In-browser architecture, cy.intercept, cy.session |
| 46 | Appium / Mobile Native | UiAutomator2, XCUITest, gestures, contexts |
| 49 | Karate Framework | Feature-file API testing, match operator, parallel |
| 22 | GraphQL & gRPC Testing | Queries, mutations, schemas, Protobuf, grpcurl |
| 23 | Contract Testing (Pact) | Consumer-driven contracts, broker, can-i-deploy |
| INFRA & PERFORMANCE | ||
| 27 | Docker for Testing | Containers, Dockerfile, compose, Testcontainers |
| 29 | Linux & Shell for SDET | find, grep, sed, awk, processes, ssh, scripting |
| 28 | Kubernetes for Testers | Pods, services, jobs, helm, port-forward |
| 52 | Security Testing (OWASP) | Top 10, XSS, SQLi, CSRF, ZAP, Burp, sqlmap |
| 53 | JMeter | Thread groups, load profiles, CSV, distributed runs |
| 54 | k6 & Gatling (full) | Modern load testing, scenarios, thresholds |
| 51 | Microservices & Kafka Testing | Event-driven flows, schema registry, idempotency |
| FRAMEWORKS & STACK | ||
| 48 | Vitest | Modern unit testing, mocks, fake timers, snapshots |
| 59 | Jira for SDET | Issue hierarchy, bug reports, JQL, sprints |
| 56 | React for SDET | Hooks, reconciliation, RTL, common bugs |
| 1 | Node.js for SDET | Event loop, modules, async, Express, workers |
| 57 | Next.js for SDET | App Router, Server Components, Server Actions |
| 30 | Jenkins | Pipelines, agents, credentials, shared libraries |
| 58 | MongoDB | Documents, queries, aggregation, indexes |
| 41 | Allure Reports (deep) | Annotations, history, categories, hosting |
| 55 | Chaos Engineering | Failure injection, steady-state, game days |
| 42 | OpenTelemetry & Grafana | Logs/metrics/traces, OTLP, SLO/SLI/error budget |
| PRO MASTERY | ||
| 64 | DSA Pro (complete) | Full algorithm code, all patterns, sort/search/strings/graphs/DP/backtracking/greedy/bits/math/geometry, 50+ problems |
| 66 | System Design Pro (complete) | Building blocks deep, DB internals, distributed systems, networking, 15+ end-to-end designs, real-world case studies, 40+ Q&A |
Pro tips while you read
- Don't speed-read. The Q&A blocks are the most interview-relevant content — try to answer before opening.
- Code every example. Set up a tiny Playwright project, paste and run. Concepts don't stick from reading alone.
- Skip what you know. The book is reference, not a course. Jump to the gaps.
- Re-read after first interview. Things that felt theoretical the first time make sense once you've been asked them live.
- Pick one path from above. Don't try to read top-to-bottom; you'll drown.
Honest scope noteThis book covers the most common Playwright-SDET interview surface area for 1–8 years experience. It will NOT make you an expert in every technology mentioned (REST Assured, Cucumber, Lighthouse, BrowserStack) — for those, you'd take a dedicated deep-dive. It WILL give you enough to discuss them intelligently in interviews and decide where to invest further.