Playwright from first test to a full suite
Build browser tests with Playwright, one skill at a time. End with a complete suite that runs in a pipeline.
ABOUT THIS TRACK
Build browser tests with Playwright, one skill at a time. End with a complete suite that runs in a pipeline.
FOR: Testers and developers who want to automate web tests with Playwright. Basic automation ideas help, and the first module teaches the tool from scratch.
AFTER THIS TRACK YOU CAN
- Install Playwright, write a first test and run it.
- Find elements by role and check results with web-first assertions.
- Structure tests with fixtures, hooks and page objects.
- Handle logins, frames, uploads and other page features.
- Mock the network and control time and browser settings.
- Debug failures and run a suite in parallel in a pipeline.
HOW TO USE THIS TRACK
3 NOTES
Start at module 1 and read the topics in order. Open the free first level of each topic, then go deeper where you need to. Take each module checkpoint, and sit the exam at the end of the page when you finish.
A topic stop is a lesson to read. A checkpoint is a short quiz that closes a module, and it covers only the topics in that module. Take Test automation foundations first so locators, waits and page objects are not new. The code samples use TypeScript, with a Python module for those who prefer it.
A track is a suggested order, not a gate. You can skip, repeat or reorder stops. A track does not issue a certificate by itself.
MODULE 1
Your first Playwright test
Install Playwright, write a first test in TypeScript or Python, and run it from the command line.
MODULE 2
Finding things and checking them
Find elements by role and write checks that wait for the page by themselves.
MODULE 3
Structuring tests so they last
Organise tests with hooks, fixtures, page objects and data so they stay easy to change.
MODULE 4
Sessions, logins and page features
Keep tests apart, reuse a login, and handle uploads, frames and awkward page widgets.
MODULE 5
Network, time and browser control
Test an API, mock the network, control the clock and set up browser features.
MODULE 6
Visual, accessibility and component checks
Add visual, accessibility, component and behaviour-driven checks to a suite.
MODULE 7
Debugging and running at scale
Debug with the trace viewer and run the suite in parallel in a pipeline.
MODULE 8
A complete suite and what comes next
Pull everything into one suite, move from another tool, and keep up with new releases.