Playwright Test Lead Training
A comprehensive 2-month instructor-led program: theory + guided practice + weekend assignments — covering JavaScript, TypeScript, Playwright, POM, Cucumber BDD, API testing, CI/CD and GenAI agents.
Why This Program?
A structured 8-week journey from JavaScript fundamentals to a production-ready Playwright framework — built around how real test leads work.
Instructor-Led Theory
Every week has 3 theory days plus 2 dedicated practice days — ensuring concepts are taught before they're applied.
Guided Practice Sessions
Practice days are structured exercises, not homework. You build real automation under mentor guidance in every session.
Weekend Assignments
Each week ends with a targeted assignment that reinforces the week's learning with a real-world mini-project.
Complete Automation Stack
JavaScript, TypeScript, Playwright, POM, Cucumber BDD, API testing, GitHub Actions CI/CD — all covered end to end.
GenAI & MCP Integration
Learn Model Context Protocol, Playwright MCP agents, and AI-driven test generation — built into the final week.
Capstone Project
Finish with an end-to-end framework capstone: POM + BDD + API + CI pipeline + GenAI agent integration and live demo.
Weekly Schedule
8 weeks · 40 days · instructor-led theory + guided practice + weekend assignments
JS Kickoff & GenAI in QA
- Testing evolution in the GenAI era; roles of AI agents in QA
- Node.js runtime, npm/yarn, package.json and scripts
- Use Codegen to bootstrap feature-driven tests
- Variables, data types & operators (JavaScript)
Node Project Setup
- Initialize Node project, configure npm scripts
- Hands-on: write JS snippets covering variables, types and operators
Control Flow & Functions
- Control flow: if/else, switch
- Loops: for, while, for...of, forEach
- Functions: declarations, expressions, arrow functions, scope & closures
Control Flow Exercises
- Implement control-flow helpers and small algorithms
- Exercises focusing on closures and scoping
Arrays, Objects & ES6+
- Arrays & objects; map/filter/reduce patterns
- ES6+ features: destructuring, spread/rest, template literals
- Working with JSON and common object manipulation patterns
🏠 Weekend Assignment — Week 1
- Build utilities operating on arrays/objects; use destructuring and templates
- Prepare a short write-up explaining chosen patterns
Asynchronous JavaScript
- Asynchronous JavaScript: callbacks, Promises and async/await
- Event loop, timers and common async pitfalls
- Error handling patterns
Async Utilities
- Write async helpers, chain Promises and use async/await
- Consume mock APIs and handle errors gracefully
TypeScript Essentials
- TypeScript essentials: types, interfaces, classes and modules
- tsconfig, compilation and editor integration
- Best practices for test automation with TypeScript
TypeScript Migration
- Add TypeScript to the project and type small utilities
- Fix common typing issues and integrate with Playwright
Playwright Test Runner Intro
- Playwright introduction and Test Runner fundamentals
- Install/init, playwright.config, describe/test, hooks and assertions
🏠 Weekend Assignment — Week 2
- Scaffold Playwright + TypeScript project; write and run a basic test via CLI
Locators & Assertions
- Locators, selector strategies and wait mechanisms
- Expect API and web-first assertions
Resilient Locators
- Craft resilient locators, use different selector strategies
- Practice auto-wait and explicit waits
Forms & Tables
- Form interactions & tables: inputs, checkboxes, radios, dropdowns
- Table extraction, pagination and validation strategies
Form Automation Suites
- Automate form flows and validate table data
- Edge cases for custom components and selects
Frames, iFrames & Browser Contexts
- Frames, iframes & browser contexts
- StorageState, cookies, session reuse and isolation strategies
🏠 Weekend Assignment — Week 3
- Automate a scenario using frames and contexts; preserve and restore storage state between runs
Tabs, Popups & Multi-page
- Tabs, popups & multi-page coordination
- Handling new pages and cross-window flows
Multi-tab Automation
- Automate multi-tab flows and popup interactions
- Coordinate assertions across windows
Mouse, Keyboard & Scroll
- Mouse actions, scrolling, drag & drop and keyboard events
- Viewport handling and scroll strategies
Complex Interactions
- Implement hover, drag & drop and keyboard shortcut automation
- Scroll into view and programmatic scrolling exercises
File Upload & Download
- File upload & download handling (setInputFiles, download validation)
- Security considerations and cleanup strategies
🏠 Weekend Assignment — Week 4
- Automate uploads and downloads; validate file contents and cleanup scripts
Shadow DOM & Web Components
- Shadow DOM & Web Components: interacting with shadow-root and custom elements
- Selectors and piercing strategies for web components
Web Component Testing
- Access and assert shadow-root elements and custom element behavior
- Test component lifecycle and slot behaviors
Fixtures & Test Data
- Fixtures — built-in & custom; scoping, setup/teardown and test isolation
- Test data factories and reusable setup patterns
Fixture-driven Tests
- Author custom fixtures for reusable setup and teardown
- Create test data factories and seed data for tests
Debugging with Artifacts
- Screenshots, video recording and Trace Viewer for debugging
- Artifact retention and analysis for flaky tests
🏠 Weekend Assignment — Week 5
- Capture artifacts for failing tests and analyze traces to diagnose flakiness
Test Grouping & Annotations
- Grouping tests, hooks, annotations, tagging and conditional runs
- Best practices for organizing large suites
Selective Execution
- Tag suites, apply annotations and run selective suites
- Create conditional runs based on environment and labels
Parallel Testing & Sharding
- Parallel testing & distribution: workers, sharding and balancing tests for CI
- Strategies for stable parallel execution
Parallel Runs in CI
- Configure parallel runs locally or in CI and measure speedups
- Address test ordering and shared state issues
Reporting & Maintenance
- HTML/JUnit reporting, Allure integration and Report Portal
- Playwright Codegen overview and maintenance patterns for generated tests
🏠 Weekend Assignment — Week 6
- Generate reports, use Codegen to bootstrap tests and refactor generated code
POM Fundamentals
- Automation framework design — POM fundamentals and interfaces
- Framework goals: maintainability, readability and speed
Build POM Classes
- Create basic Page classes and encapsulate locators/actions
- Validate page interfaces and usage in tests
- Implement step definitions that delegate to POM methods
Cucumber BDD Fundamentals
- BDD concepts: Given/When/Then, feature files and scenarios
- Integrating Cucumber with Playwright and TypeScript
- Step definitions, World object and hooks in Cucumber
- Organising feature files and tagging scenarios
BDD with POM Integration
- Author feature files for real user journeys
- Wire step definitions to POM page methods
- Run tagged scenarios and generate Cucumber HTML report
CI/CD with Playwright
- CI/CD with Playwright: GitHub Actions, parallel jobs, artifact publishing and gating merges
- Running Cucumber BDD suites in CI; publishing Cucumber reports as artifacts
🏠 Weekend Assignment — Week 7
- Create a CI workflow to run tests, publish reports and gate merges
- Write a Cucumber feature file for a key user journey and run it via CI
API Testing with Playwright
- APIRequestContext, JSON schema validation and auth flows
- Hybrid UI+API testing strategies
API Test Suites
- Build API tests and compose them with UI flows
- Validate JSON schemas and auth scenarios
Playwright MCPs & Tooling
- Playwright CLI, MCP concepts and integrating with agents
- WebMCP / Model Context Protocol overview
Agent Integration
- Call MCP endpoints, use agent outputs and validate generated tests
- Experiment with generator and healer agent examples
GenAI Agents & Capstone Launch
- GenAI for test generation & agents; planner workflows
- Capstone kickoff: scope, milestones, deliverables and evaluation criteria
- Capstone option: BDD — feature files, step definitions and CI integration
🎓 Capstone & Assessment
- Build end-to-end framework: POM + BDD + API + CI pipeline
- Integrate MCP/GenAI agents; present code review and final demo
🎓 Capstone & Assessment
Capstone spans the final two weeks: develop an end-to-end Playwright framework (POM and BDD), include API tests, CI pipeline, reporting and demonstrate integration with MCP/GenAI agents. Assessment is based on code reviews, mentor feedback and final demo.
📋 Notes & Prerequisites
- Participants must attend Monday–Friday sessions (1.5 hrs/day) and complete weekend practice assignments.
- Required tools: VSCode, Node.js, npm, Playwright, TypeScript, Cucumber, Allure Reports, Git.
Ready to Begin?
Transform your QA career with the most comprehensive AI-era training program.