Playwright
Automatically test websites by having a program click, type and check pages in real web browsers.
- Your data
- Your choice: device or online
- Coding needed
- Developers only
- Cost
- Free
- Runs on
- Mac, Windows, Linux
Automatically test websites by having a program click, type and check pages in real web browsers.
Playwright is a tool from Microsoft for testing websites. Developers write short scripts that open a page, click buttons, fill in forms and check that the right things appear. Playwright then runs these checks in the engines behind Chrome, Firefox and Safari, so problems are caught before real visitors see them.
It waits for pages to be ready on its own, can run many tests at once, and can record screenshots, videos and step-by-step "traces" when something fails. A Visual Studio Code add-on can even write test code for you while you click through your site.
Beyond testing, it can be used to automate any browser task, such as taking screenshots or saving pages as PDFs. It works on Windows, Mac and Linux, and can be used from JavaScript or TypeScript, Python, .NET and Java.
The makers offer Playwright MCP, a sister project that lets an AI assistant control a real browser: open pages, click, fill in forms and take screenshots. Its makers say the AI reads a structured outline of the page rather than looking at pictures of it. They also offer a Playwright command-line tool designed for coding assistants.
Source: the makers' documentation on this integration.
Web developers and testers who want to check that their website works in different browsers, and developers automating browser tasks.
Developers only. Tests and scripts are written in code and run from the command line or a code editor. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?