Skip to main content
Self-pacedPart of AI Career Booster

Playwright Advanced 2026

AI writes Playwright tests in seconds. Most of them rot within a sprint. Learn the production-grade patterns that survive AI-generated code – tiered locators, agentic workflows, and network control — on real streaming apps.

85 lecturesEssentials + Modules 0-9 liveTypeScriptWindows, macOS, Linux
Module 1 · The tiered thesis

Cheap thing first, smart thing when needed

Deterministic locators where they work. The accessibility tree with an LLM where they do not. Vision only where there is no DOM at all.

What you’ll be able to do

Take control of the network layer. page.route , HAR replay, WebSocket interception — and the three places it silently cannot help you.

Write locators that stop rotting. A tiered strategy — deterministic, then accessibility-tree with an LLM, then vision — and the judgement to know which tier a problem belongs to.

Run agents without losing control of your suite. The Test Agents loop end to end, instruction files that hold agents to your conventions, and your own MCP server.

Constrain what AI can generate. Strict TypeScript, lint rules tuned for AI anti-patterns, and pre-commit gates that stop bad generated code before it merges.

Ship and keep it running. Sharded CI with blob reports, a live capstone refactor, performance and synthetic monitoring, component testing, and evaluating AI features in a product.

And for every technique above: exactly where it breaks in production.

Course overview

Every module ends with a “where this breaks in production” segment and a your-turn task.

Locators that don’t rotThe locator resilience hierarchy, getByRole on a real streaming app, ARIA snapshots, iframes and shadow DOM.Module 3
Full network controlpage.route, partial mocking, routeFromHAR, WebSocket routing, Server-Sent Events and contract testing.Modules 4-6
Agentic workflowsFour ways to generate Playwright code, then Playwright Test Agents end to end: planner, generator and healer.Modules 7-8
Guardrails for AI codeAGENTS.md, one source of truth for every AI client, a write-time hook, lint and a healer-review checklist.Module 9

Course content

16 modules · 85 lectures · 14 exercises
  • E1.A · Node, VS Code and the Playwright extensionWatch free
  • E1.B · No installs: GitHub CodespacesWatch free
  • E1.C · A tour of the course repoWatch free
  • E1.D · First run, and reading the HTML reportWatch free
  • E1.X · Just enough TypeScript (optional)Watch free
  • E1.Y · Coming from Selenium (optional)Watch free
  • E01 tests · tests/e01Resource
  • E2.A · Pick locator
  • E2.B · Record a flow
  • E2.C · Record at cursor
  • E2.D · Codegen is a starting point
  • E02 tests · tests/e02Resource
  • E02 homework · record one click, write one checkExercise
  • E3.A · Choosing a locator: getByRole
  • E3.B · Five actions
  • E3.C · Web-first assertions
  • E3.D · When it goes red: the Trace Viewer
  • E03 tests · tests/e03Resource
  • E03 homework · check a box, prove itExercise
  • E4.A · Hooks: write the setup once
  • E4.B · Page objects
  • E4.C · Fixtures
  • E4.D · One test body, many rows
  • E04 tests · tests/e04Resource
  • E04 homework · through the page objectExercise
  • E5.A · Read your playwright.config.ts
  • E5.B · Tags, describe and --grep
  • E5.C · Web-first assertions and the trace
  • E5.D · Graduate to Playwright Advanced 2026
  • Student repo · EssentialsResource
  • Essentials capstone · green bar, then debug one failureExercise
  • IntroductionWatch free
  • Companion repoResource
  • Open in Codespaces (no local setup)Resource
  • Release schedule · dates and orderResource
  • Repo conventions the AI agents followResource
  • Runnable "where this breaks" examples · all modulesResource
  • 1.A · What's changed since Playwright 1.49
  • 1.B · The tiered thesis: cheap thing first, smart thing when neededWatch free
  • 1.C · Augment, don't replace
  • 1.D · Course tour: 20 modules, 5 tracks + extensions, 3 anchors
  • 1.E · "Where this breaks in production" — the recurring beat
  • Get the repo running, and start training your eyeExercise
  • 2.A · TypeScript strict mode
  • 2.B · ESLint + eslint-plugin-playwright
  • 2.C · Husky pre-commit hooks
  • 2.D · Playwright config
  • 2.E · Devcontainer + Codespaces (and where this breaks)
  • Audit your project setup against the templateExercise
  • 3.A · The locator resilience hierarchy
  • 3.B · getByRole deep dive on Tubi
  • 3.C · ARIA snapshots as the structural assertion
  • 3.D · Edge cases: iframes and shadow DOM
  • 3.E · Where this breaks
  • Module 3 code and fixturesResource
  • Tubi page objects used throughout the courseResource
  • Rewrite a brittle locator so it stops rottingExercise
  • 4.A · What page.route actually is
  • 4.B · Static-JSON mocking on Tubi
  • 4.C · When mocks lie to you
  • 4.D · Partial mocking
  • 4.E · Route ordering & precedence
  • 4.F · Where this breaks
  • The committed proofs (covers lessons 4.B through 4.F)Resource
  • Module 4 code and fixturesResource
  • Mock a real test, then break the mockExercise
  • 5.A · What a HAR actually is
  • 5.B · Capture-and-replay with routeFromHAR
  • 5.C · tracing.startHar() for diagnostic capture
  • 5.D · Trace Viewer mastery
  • 5.E · Where this breaks + your turn
  • The committed proofsResource
  • Module 5 code and fixturesResource
  • Diagnose a flake with trace + HAR + cURLExercise
  • 6.A · Why this module uses Juice Shop, not Tubi
  • 6.B · page.routeWebSocket()
  • 6.C · Server-Sent Events patterns
  • 6.D · Report-generation testing
  • 6.E · The toast is not the assertion
  • 6.F · Contract testing against the OpenAPI spec
  • 6.G · Modern route precedence rules
  • 6.H · Where this breaks + your turn
  • Module 6 code and fixturesResource
  • Module 6 homework · three tests, three anglesExercise
  • 7.A · Four ways to generate Playwright code
  • 7.B · Inspector codegen: the starting point, not the destination
  • 7.C · Claude Code + Playwright MCP: how it works
  • 7.D · Claude Code + MCP, live: fix the adapter, not the test
  • 7.E · Playwright CLI and the real cost model
  • 7.F · Playwright Test Agents: planner, generator, healer
  • 7.G · Test Agents live: plan, generate, heal
  • 7.H · Where this breaks + your turn
  • Module 7 code and transcriptsResource
  • Module 7 homework · one task, two generatorsExercise
  • 8.A · Anatomy of the agentic loop
  • 8.B · Agent definitions for your project
  • 8.C · The planner, live on Tubi Live TV
  • 8.D · The generator, on a real plan
  • 8.E · The healer, reviewed
  • 8.F · The manifest: one source of truth
  • 8.G · Where this breaks + your turn
  • Module 8 code and plansResource
  • Module 8 homework · run the loop, then review itExercise
  • 9.A · Two problems, three layers
  • 9.B · AGENTS.md: the file every agent reads
  • 9.C · One source of truth for every AI client
  • 9.D · A write-time hook, then lint
  • 9.E · The healer-review checklist
  • 9.F · Where this breaks + your turn
  • Module 9 code and guardrailsResource
  • Module 9 homework · build the safety net on your repoExercise
  • 10.A · What an MCP server actually is
  • 10.B · A minimum viable server in one file
  • 10.C · Writing tools for an LLM, not a human
  • 10.D · The QA server you keep: four real tools
  • 10.E · Transports: stdio and Streamable HTTP
  • 10.F · When not to build one
  • 10.G · Where this breaks + your turn
  • Module 10 code · mcp-serverResource
  • Module 10 homework · add a fifth tool to the QA serverExercise

Essentials (E01-E05) and Modules 0 through 9 are live now. Further modules are released on an ongoing cadence, and your access includes every one as it lands.

Certificate of completion

Capstone and certificate

Module 16 is a live capstone where you refactor a deliberately tangled suite end to end. When you finish, you receive a course-completion certificate from Engenious University.

About this course

Any AI assistant can generate a Playwright test in seconds. That was the hard part until about 2024. The hard part now is that the test it writes looks correct, passes on your machine, and quietly breaks three sprints later when someone renames a CSS class – and you have forty more just like it.

If your suite has grown faster than your confidence in it, that is not a discipline problem. It is what happens when generation gets cheap and architecture stays expensive.

Playwright Advanced 2026 teaches the architecture. Across 20 modules you build the system that AI-generated tests need in order to survive: a tiered locator strategy that degrades gracefully instead of failing, project setup that constrains what an agent can produce, full control over the network layer, and the agentic workflows – Playwright Test Agents, instruction files, a custom MCP server you write yourself — that turn an assistant from a liability into leverage.

The organizing principle is one line, and every module returns to it: cheap thing first, smart thing when the cheap thing cannot carry the load. Deterministic locators where they work. The accessibility tree with an LLM where they do not. Vision only where there is no DOM at all – video players, canvas, media surfaces.

Everything is built against real applications, not a toy demo site. Tubi is the primary anchor, a live streaming service with the messy React markup and video surfaces that make tests hard. OWASP Juice Shop runs locally in Docker as the controlled target with deliberate bugs. Expand Testing covers the iframe and shadow-DOM cases Tubi does not expose.

Every module ends the same way, with a segment called where this breaks in production . Not a summary – a specific failure mode. When mocks pass but production fails. When the self-healing agent hides a real regression. When AI-generated test data conceals the bug you were looking for. That segment is the course's signature, and it is the difference between knowing a feature exists and knowing what it costs you.

Taught by Greg Goldshteyn. New modules land on a regular release cadence, so the curriculum tracks what Playwright actually does now rather than what it did in v1.49 á where most Playwright material still stops.

Your instructor

Gregory  GoldshteynGregory GoldshteynAward Winning QA Leader
Worked at
Fox MediaSalesforceSony

Visionary QA Leader with substantial experience in the IT industry. Worked across Salesforce, Sony , and now as part of Video Engineering and Quality Assurance at Fox Media , he leads the strategy for high-concurrency streaming environments, where a single second of latency is unacceptable.

Who this course is for

  • Automation engineers whose Playwright or Selenium suite has outgrown the patterns it was started with
  • QA engineers who now let AI write most of their tests and want the architecture that makes that safe
  • SDETs who can write a passing test but are not yet the person who decides how the framework is shaped
  • Anyone maintaining a suite that is green in CI and no longer trusted by the team
  • Test leads evaluating where AI genuinely belongs in a testing stack, and where it quietly costs more than it saves
  • Engineers who have finished an introductory Playwright course and found the jump to production-scale work unbridged

Course requirements

System
  • Windows 10/11, macOS, or Linux
  • 16 GB RAM recommended
  • ~10 GB free disk for browsers, Docker images, and traces
  • Stable internet connection — several modules test against live sites
Tools you install
  • Node.js 22 or later — the repo pins it via .nvmrc , so nvm is recommended
  • Git and a GitHub account
  • Visual Studio Code, or any editor with a terminal
  • Docker Desktop — required for the OWASP Juice Shop modules; a few modules skip without it
  • Playwright 1.64+ – installed by npm install from the repo; run npx playwright install --with-deps once for the browsers
AI tooling
  • Claude Code is the primary AI client used throughout the course, and the repo ships CLAUDE.md plus .claude/agents/ for it
  • GitHub Copilot or Cursor work for most lessons — the repo carries .github/copilot-instructions.md and .cursor/rules/index.mdc as well
  • An Anthropic API key is needed for the tier-2 and tier-3 lessons in Module 11. The tier-1 path and the offline demo run without a key, so you can complete the earlier modules with no API spend at all
Zero-install alternative
  • The repo is devcontainer- and Codespaces-ready. One click opens a working environment with browsers preinstalled — expect roughly 3 minutes to provision the first time
What you should already know
  • You can read and write TypeScript or JavaScript; you do not need to be fluent
  • You have written at least a few automated UI tests, in any framework
  • Basic terminal comfort — git , npm , running a command and reading its output
  • No machine-learning background of any kind is required

Frequently asked questions

Yes. Playwright Advanced 2026 is part of the AI Career Booster, along with every new module as it is released.

Yes – some. This is an advanced course and it assumes you can already read and write a Playwright spec file. You do not need to be an expert, and nothing here expects you to have built a framework before. If you have never written an automated test, start with the introductory Playwright course first and come back to this one.

Yes - you have 1 week after subscribing to request a refund from us.

You need to be able to read it and write basic code in it. You do not need to be fluent. The repo runs in TypeScript strict mode throughout, and Module 2 explains every setting and why it is there — so if strict mode is new to you, that is a lecture, not a prerequisite.

No. Nothing in this course involves training or building models. You use AI tools as a tester: generating code, recovering from locator rot, evaluating output. Module 1 is explicit about where AI helps and where it helps with nothing.

A production-grade test architecture, module by module: a tiered locator system that degrades gracefully instead of failing, a project setup that constrains what AI can generate, full control of the network layer, an agentic workflow using Playwright Test Agents, your own MCP server, and a CI pipeline with sharding and merged reports. Module 16 is a live capstone where you refactor a deliberately tangled suite end to end.

Three real ones, no toy demo site.

Tubi , a live streaming service, is the primary anchor — real React markup and real video surfaces

OWASP Juice Shop runs locally in Docker as the controlled target, with deliberate bugs

Expand Testing covers the iframe and shadow-DOM cases Tubi does not expose

Tests reach these through adapter classes, so if a site changes, the adapter changes and the lessons do not.

Yes. Windows, macOS, and Linux all work. Node 22 is the only hard requirement, and the repo pins it. There is no Xcode-style platform lock anywhere in this course.

Every course has a channel

Engenious Discord Community

Get help, share knowledge, and grow faster with other QA engineers.

Join our Discord
Ask question