Playwright drives Chromium, Firefox, and WebKit through one API for tests, scripts, and agent-driven browser control.
Overview
Playwright is a framework for web automation and testing. It controls Chromium, Firefox, and WebKit with a single API for end-to-end tests, standalone automation scripts, and tooling aimed at AI coding agents.
Playwright Test is the bundled test runner. It runs tests in isolated browser contexts with auto-waiting, web-first assertions, parallel execution, tracing, screenshots, and video capture on failures. Locators follow roles, labels, and test ids rather than brittle CSS paths.
Playwright CLI offers token-efficient browser commands for agents such as Claude Code and Copilot, including a dashboard to watch live sessions. Playwright MCP exposes browser actions through the Model Context Protocol using accessibility snapshots instead of vision models.
The core library supports scraping, PDF export, mobile emulation, and network interception without the test runner. A VS Code extension runs, debugs, and records tests from the editor. Bindings are also advertised for Python, .NET, and Java.
Key features
- Chromium, Firefox, and WebKit control
- Auto-wait and retried assertions
- Isolated browser contexts per test
- Trace viewer with network and DOM
- Codegen test recording
- MCP server for AI agents
- CLI tuned for coding agents
- VS Code test extension
Use cases
- Cross-browser end-to-end tests
- Headless scraping or PDF export
- Agent-driven web interactions
- CI parallel browser matrices
- Mobile layout emulation checks
Does the same job as
Playwright doesn't name these products itself, but its own description shows it does the same job.