Playwright Study Guide
Playwright Study Guide
Skip to lesson
TestingDocs.com
Automation learning labPlaywright Automation
Automation learning lab
TestingDocs • Self-paced course
Playwright Automation
Self Study Guide
Start from zero. Learn JavaScript and TypeScript, automate browsers, and build reliable end-to-end tests.
60 chaptersBeginner friendlyHands-on practice
60-chapter learning path
Start at chapter 1, or choose any topic. Your progress is tracked separately for each chapter.
0/30JavaScript & TypeScript
0/30Playwright automation
JavaScript fundamentals
Chapter 1JavaScript introductionChapter 2Node.js, npm and VS CodeChapter 3Variables and constantsChapter 4Data typesChapter 5Operators and expressionsChapter 6Strings and template literalsChapter 7Conditional statementsChapter 8LoopsChapter 9Functions and parametersChapter 10Arrow functions and scopeChapter 11ArraysChapter 12Array methodsChapter 13Objects and propertiesChapter 14Destructuring and spreadChapter 15JSON and test dataChapter 16Classes and constructorsChapter 17Modules, import and exportChapter 18Errors and exception handlingChapter 19PromisesChapter 20Async and awaitChapter 21Promise.all and asynchronous workflows
TypeScript fundamentals
Chapter 22TypeScript introductionChapter 23Type annotations and inferenceChapter 24Interfaces and type aliasesChapter 25Union types and narrowingChapter 26Optional properties and null safetyChapter 27GenericsChapter 28Typed classes and access modifiersChapter 29TypeScript compiler and tsconfigChapter 30Typed test data mini project
Playwright • setup & locators
Chapter 31Playwright introduction and architectureChapter 32Install Playwright and browsersChapter 33Project structure and configurationChapter 34First Playwright testChapter 35Running tests and headed modeChapter 36Navigation and pagesChapter 37DOM and CSS selectorsChapter 38Role, text, label and test-id locatorsChapter 39XPath and locator filtering
Playwright • interactions & assertions
Playwright • framework & debugging
Playwright • real-world automation
Interactive practice lab
Try the controls below and observe the corresponding Playwright locator instructions. This browser demo does not execute Node.js or Playwright Test; copy the code to your local Playwright project to automate it.
Task manager demo
Suggested automation
Actions on the demo update these examples. In your local test use a page that contains the same controls.
Download a standalone lab page, then serve it locally (for example with Python's http.server). Navigate to it in a Playwright test.