Introduction to Playwright
What Playwright is, why it’s used for end-to-end testing, and how the test runner ships out of the box.
What is Playwright
Playwright is an open-source end-to-end testing framework built and maintained by Microsoft. A single API drives Chromium (Chrome, Edge), Firefox and WebKit (Safari) across Windows, macOS, Linux, headless or headed, desktop or mobile emulation.
It ships with @playwright/test — its own test runner with parallelism, fixtures, web-first assertions and rich tooling (Trace Viewer, codegen, UI mode). You do not need Jest, Mocha or a separate runner to start.
Install in a new project
The recommended way to bootstrap is the official init command. It scaffolds playwright.config.ts, an example test, GitHub Actions workflow and installs browser binaries.
Run your tests
Tests are launched with npx playwright test. By default Playwright runs every project from the config in parallel; pass --headed to see the browser, --debug to step through, --ui to open the watch-mode UI runner.