QA Playground
HomeGuides
Mini Shop0/4
Open the shop →First E2E TestPage Objects & FixturesCheckout Edge CasesUI + API Together
Basic Elements0/6
ButtonsInputsCheckboxesRadio ButtonsDropdownHover
Locators0/3
Accessibility TreeLocator ChallengesLocator Logic
Dynamic Elements0/6
Appear & DisappearChanging TextProgress BarActionabilityFlaky LabTimers & Clock
Forms0/6
Login FormForm ValidationAutocompleteFile UploadFile DownloadMulti-step Form
Authentication0/1
Sign In & Sessions
Tables0/4
Basic TableSortable TableTable ActionsData Grid
Dialogs & Windows0/3
JavaScript DialogsModals & OverlaysTabs & Windows
Frames0/3
iFrame BasicsNested & Multiple FramesEmbedded Widgets
Mouse & Keyboard0/3
Keyboard ActionsDrag & DropMouse Actions
Content & Attributes0/5
Content & AttributesAttributes vs PropertiesARIA WidgetsShadow DOMPage Audit
Network & API0/3
API PlaygroundAPI TestingNetwork Mocking
Debugging & Tracing0/3
Reading FailuresTrace ViewerDebugging Toolkit

Playwright guides

Short articles on the Playwright topics that trip people up most, with TypeScript examples. Each one links to the exercises where you practise it.

  • Playwright practice for beginners: a four-week planA four-week Playwright practice plan for beginners: set up a TypeScript project, then work through hands-on exercises from your first click to a full end-to-end suite.7 min read · 24 exercises
  • Playwright locators: a practical guide with exercisesHow to choose Playwright locators that survive redesigns: getByRole, getByLabel, getByText and test ids, exact matching, filtering, combining locators, strict mode and shadow DOM, with exercises.9 min read · 13 exercises
  • Playwright auto-waiting: how to fix flaky testsWhy Playwright tests turn flaky and how to fix them: actionability checks, web-first assertions, timeouts, waiting for responses, expect.poll and toPass, with exercises.9 min read · 10 exercises
  • Testing iframes with PlaywrightHow to test iframes with Playwright: contentFrame() and frameLocator(), nested and duplicate frames, late frames, dialogs from frames and payment forms, with exercises.7 min read · 5 exercises
  • Playwright network mocking and API testingMock and inspect network traffic in Playwright with page.route(), fulfill, abort, fetch and waitForResponse, and test an API directly with the request fixture, with exercises.9 min read · 6 exercises
  • Playwright authentication: sign in once with storageStateHow to handle sign-in in Playwright tests: save the session with storageState in a setup project, sign in through the API, test several roles and handle sign-in popups, with exercises.8 min read · 6 exercises
  • Playwright Page Object Model with fixturesHow to structure a Playwright suite: Page Object classes in TypeScript, custom fixtures with test.extend(), state prepared through the API and tests that run in parallel, with exercises.9 min read · 6 exercises
  • File upload and download in PlaywrightHow to test file uploads and downloads with Playwright: setInputFiles(), in-memory files, file choosers, drop zones, the download event and checking file contents, with exercises.7 min read · 3 exercises
  • Playwright Trace Viewer: how to debug failing testsHow to debug a failing Playwright test: read the error and call log, record a trace, inspect snapshots, network and console in the Trace Viewer, and collect errors in code, with exercises.8 min read · 6 exercises
  • Running Playwright tests in CI with GitHub ActionsHow to run Playwright tests in GitHub Actions: the workflow file, CI settings for retries, workers and traces, reports as artifacts, sharding and keeping secrets out of the repository.8 min read · 5 exercises
  • Playwright cheat sheet: locators, actions and assertionsA one-page Playwright cheat sheet in TypeScript: commands, locators, actions, assertions, waiting, network, frames, dialogs, files and test structure, each linked to an exercise.6 min read · 23 exercises
© 2026 QA Playground · Built with ❤️ by Wojciech Łyskawa · Buy me a coffeeReport an issue / feedback · Playwright docs · Not affiliated with Playwright or Microsoft.