Playwright Exercises
Test your Playwright skills with exercises from all chapters.
Every lesson page also ends with its own short exercise.
Exercises
Introduction4 exercises
Get Started4 exercises
First Test4 exercises
Running Tests4 exercises
UI Mode4 exercises
Locators4 exercises
Filter Locators4 exercises
Actions4 exercises
Assertions4 exercises
Generic Assertions4 exercises
Soft Assertions4 exercises
Auto-Waiting4 exercises
Waits and Timeouts4 exercises
Hooks4 exercises
Groups and Tags4 exercises
Skip, Only and Fixme4 exercises
Codegen4 exercises
Trace Viewer4 exercises
Debugging4 exercises
Inspector4 exercises
Screenshots and Videos4 exercises
Config File4 exercises
Browsers and Projects4 exercises
Mobile Emulation4 exercises
Parallel Tests4 exercises
Retries and Flaky Tests4 exercises
Reporters4 exercises
JSON, JUnit and Blob Reporters4 exercises
Page Object Model4 exercises
Fixtures4 exercises
Authentication4 exercises
Network Mocking4 exercises
API Testing4 exercises
Visual Comparisons4 exercises
Visual Comparison Options4 exercises
CI4 exercises
MCP4 exercises
Agents4 exercises
Python Get Started4 exercises
Python First Test4 exercises
Python Sync and Async4 exercises
Python vs JavaScript4 exercises
The Exercise
The exercises are a mix of "multiple choice" and "fill in the blanks" questions. There are between 3 and 9 questions in each category. The answer can be found in the corresponding tutorial chapter. If you're stuck, or answer wrong, you can try again or hit the "Show Answer" button to see the correct answer.
If you are new to Playwright, start with our Playwright Tutorial from the beginning.