Home & How to Use

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?

ReasonWhat it gives you
Stable LTS-grade release1.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 v2npx 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+ requirementModern 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 imagemcr.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-deps after 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
  1. Left sidebar is grouped by category. Click any topic to jump.
  2. Search box at the top of the sidebar filters topics by keyword.
  3. Q&A blocks are collapsible — try to answer in your head before opening the answer.
  4. Code blocks are syntax-highlighted; copy-paste freely.
  5. Bookmark the page in your browser (Cmd/Ctrl+D) for easy access.

Suggested reading paths

Path A · Beginner → Job-ready (8–12 weeks)
  1. Manual Testing Foundations (33)
  2. JavaScript Masterclass (2)
  3. TypeScript Crash Course (3)
  4. Playwright Architecture (4)
  5. Locators & UI (6) + Playground (9)
  6. Fixtures & Config (7)
  7. Network & Advanced (8)
  8. API Testing (17) + HTTP Codes (18) + Postman (20)
  9. CI/CD (26) + Flakiness (32)
  10. DB Testing (21)
  11. Behavioral (67) + Coding Round (62)
  12. Interview by Experience (69) + Cheat Sheet (16)
Path B · Senior / 5+ years interview prep (2–3 weeks)
  1. Architecture (4) — be sharp on internals
  2. Locators / Strict / Narrowing (6)
  3. Fixtures (7) + Architecture (34)
  4. API Chaining (19) + REST Assured (24)
  5. System Design (36) — the differentiator
  6. Test Data Management (38)
  7. BDD/Cucumber (35) + AI testing (43)
  8. Cloud Execution (31)
  9. Flakiness deep-dive (32)
  10. Extended Coding Round (63)
  11. Interview Q&A by Experience (69)
  12. Behavioral & Scenario (67)
Path C · Already-know-Playwright, going broad
  1. API Chaining (19)
  2. Visual (11) + A11y (12) + Performance (13) + Mobile (14)
  3. Popups deep-dive (10)
  4. Postman (20) + HTTP Codes (18)
  5. AI & MCP (43)
  6. System Design (36)
Path D · Coding round only
  1. Coding Round (62) — patterns + 12 problems
  2. Extended Coding Round (63) — 24 more problems
  3. JavaScript (2) — language pitfalls in interviews
  4. TypeScript (3) — types for solutions
  5. Behavioral (67) — soft skill

What's in this book (full index)

#ModuleWhat it covers
HomeThis page — orientation + reading paths
PLAYWRIGHT CORE
4Architecture & InternalsClient–server, CDP vs WebDriver, Browser/Context/Page, auto-wait
6Locators & UI TestingAll locators, strict mode, narrowing, every UI interaction, web-first assertions
7Fixtures, Parallelism, ConfigCustom fixtures, workers, storageState, projects, full config
8Network & Advancedpage.route, mocking, HAR, Trace Viewer, debugging tools
9Locator PlaygroundInteractive — paste HTML, try locators live
11Visual RegressiontoHaveScreenshot, baselines, masking, CI diffs
12Accessibility Testingaxe-core, role checks, keyboard, CI gating
13Performance TestingWeb Vitals, Lighthouse, throttling, budgets
14Mobile & Device EmulationProfiles, touch, geo, orientation, dark mode
10Popups, Alerts, WindowsEvery event, dialog edge cases, tab-with-waiting-alert
16Playwright Cheat SheetQuick reference of all APIs
API & BACKEND
17API TestingREST principles, APIRequestContext, schema, hybrid tests
24REST Assured (Java)Given/When/Then, JSONPath, OAuth, POJO, vs Playwright
19API ChainingSequential vs DAG chains, fixtures, cleanup, idempotency
20Postman Deep-DiveEvery auth type, JWT, OAuth1 vs OAuth2, Newman, mocks
18HTTP Status CodesEvery 1xx-5xx, headers, methods, caching, idempotency
21Database TestingJDBC, Node pg, SQL essentials, data integrity assertions
LANGUAGES
2JavaScript MasterclassScope, closures, this, event loop, async, modules, pitfalls
3TypeScript Crash CourseTypes, generics, narrowing, utility types, tsconfig
15Playwright with PythonSync/async API, pytest fixtures, parity with TS
CI / DEVOPS / CLOUD
26CI/CD with GitHub ActionsFull pipeline, sharding, caching, artifacts, retries
31Cloud Execution & BrowserStackRemote runners, cloud parallelism, cross-device farms
32Flakiness: Local vs CIDiagnostic playbook — why tests pass locally and fail on CI
SDET FOUNDATIONS
33Manual Testing FoundationsSDLC/STLC, test types, defect lifecycle, agile testing
37Left-Shift & Right-ShiftShift-left in dev, contract tests, prod observability
38Test Data ManagementStrategies, synthetic data, PII masking, env separation
34Test Automation ArchitectureFramework layers, POM, patterns, anti-patterns
36SDET System DesignDesigning a test platform end-to-end
ADVANCED & MODERN
35BDD with CucumberGherkin, steps, hooks, Cucumber + Playwright
43AI in Testing · MCP · AgentsLLM testing, MCP, Playwright Agents, AI-assisted authoring
INTERVIEW PREP
62Coding Round (DSA)Patterns + 12 worked TS problems with explanations
63Extended Coding Round24 more problems including SDET-flavoured (debounce, retry, deep-equal)
67Behavioral & ScenarioOOP-in-POM, flaky-test answers, "how would you test X"
69Interview Q&A by Experience1y / 3y / 5y / 8y questions tiered with answers
71Final Review & GapsSelf-review notes, what's missing, where to go next
DEEP-DIVES & EXTRAS
60Blockchain & DLTBitcoin, Ethereum, EVM, smart contracts, ERC standards, testing dApps
61DSA FundamentalsComplexity, data structures, sorting, recursion, DP
65System Design FundamentalsScaling, sharding, caching, CAP, queues, consistency
39Mocking StrategiesMock vs stub vs fake vs spy, network/DB/time mocking
40Reporting & ObservabilityAll reporters, dashboards, KPIs
25Git for SDETsBranches, rebase, bisect, stash, hooks
50XPath Deep-Dive PracticeEvery axis, function, edge case with code
OTHER TOOLS & FRAMEWORKS
44Selenium WebDriverArchitecture, Selenium 4, locators, waits, Grid
47Java for SDETOOP, collections, generics, streams, threading
45Cypress (full)In-browser architecture, cy.intercept, cy.session
46Appium / Mobile NativeUiAutomator2, XCUITest, gestures, contexts
49Karate FrameworkFeature-file API testing, match operator, parallel
22GraphQL & gRPC TestingQueries, mutations, schemas, Protobuf, grpcurl
23Contract Testing (Pact)Consumer-driven contracts, broker, can-i-deploy
INFRA & PERFORMANCE
27Docker for TestingContainers, Dockerfile, compose, Testcontainers
29Linux & Shell for SDETfind, grep, sed, awk, processes, ssh, scripting
28Kubernetes for TestersPods, services, jobs, helm, port-forward
52Security Testing (OWASP)Top 10, XSS, SQLi, CSRF, ZAP, Burp, sqlmap
53JMeterThread groups, load profiles, CSV, distributed runs
54k6 & Gatling (full)Modern load testing, scenarios, thresholds
51Microservices & Kafka TestingEvent-driven flows, schema registry, idempotency
FRAMEWORKS & STACK
48VitestModern unit testing, mocks, fake timers, snapshots
59Jira for SDETIssue hierarchy, bug reports, JQL, sprints
56React for SDETHooks, reconciliation, RTL, common bugs
1Node.js for SDETEvent loop, modules, async, Express, workers
57Next.js for SDETApp Router, Server Components, Server Actions
30JenkinsPipelines, agents, credentials, shared libraries
58MongoDBDocuments, queries, aggregation, indexes
41Allure Reports (deep)Annotations, history, categories, hosting
55Chaos EngineeringFailure injection, steady-state, game days
42OpenTelemetry & GrafanaLogs/metrics/traces, OTLP, SLO/SLI/error budget
PRO MASTERY
64DSA Pro (complete)Full algorithm code, all patterns, sort/search/strings/graphs/DP/backtracking/greedy/bits/math/geometry, 50+ problems
66System 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

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.