Skip to content
Playwright logo

Playwright

Open-source framework for cross-browser testing and browser automation.

Reviewed by Last updated

Overview

Playwright is an open-source (Apache-2.0) framework for automating Chromium, Firefox and WebKit through one API. Developers use it for end-to-end testing, scripting and scraping. It runs browsers headless or headed on Linux, macOS and Windows. AI agents can also drive it through its MCP server and CLI.

Microsoft maintains the project on GitHub. It installs as a package for TypeScript, Python, .NET or Java and then downloads matching browser builds. The Playwright Test runner adds assertions, parallel runs and sharding. Codegen records actions as test code. Trace Viewer replays failed runs step by step. Many hosted browser services accept Playwright connections.

Pros and cons

Pros

  • Pro: One API for Chromium, Firefox and WebKit
  • Pro: Bindings for TS, Python, .NET and Java
  • Pro: Built-in test runner with sharding
  • Pro: Trace Viewer shows DOM, network and console
  • Pro: Official MCP server lets AI agents drive browsers from accessibility snapshots

Cons

  • Con: Can't drive branded Firefox or Safari
  • Con: Each release needs its own browser builds
  • Con: All three browsers take about 650 MB
  • Con: No built-in proxy rotation or anti-bot handling for scraping

Pricing

Pricing model

Free

Starts at

Free

Free tier

Available

Free and open source. Prices are in USD and can change; check the provider for current details.

Frequently asked questions

Is Playwright free?

Yes. Playwright is open source under the Apache-2.0 license and maintained by Microsoft. There is no paid tier for the library or the test runner. As of November 2026 the GitHub repository has about 101,000 stars, and the latest release is v1.65.1 (November 13, 2026).

Which browsers does Playwright support?

Chromium, Firefox and WebKit, headless or headed, on Linux, macOS and Windows. As of November 2026 the README lists Chromium 159.0.8154.33, Firefox 159.0 and WebKit 27.2. Branded Chrome and Edge can be used through channels such as chrome and msedge. Branded Firefox and Safari are not supported because Playwright relies on patched builds of those engines.

Which languages does Playwright support?

TypeScript and JavaScript on Node.js, Python, .NET (C#) and Java. All four share the same browser engines. The Playwright Test runner (@playwright/test) is part of the Node.js package.

Can AI agents use Playwright?

Yes. Playwright MCP (npx @playwright/mcp@latest) is a Model Context Protocol server that controls browsers through accessibility snapshots instead of screenshots. Playwright CLI (@playwright/cli) is a command-line option for coding agents that the project describes as more token-efficient than MCP.

Sofia Lindqvist

Sofia Lindqvist

Market Research Expert

View profile

Sofia studies software markets: who the vendors are, how they package their plans and how their offers compare in the fine print. She tests providers side by side and works out what each plan really costs.

How Playwright ranks in our comparison lists.

Tools that appear in the same lists and categories.

Building something worth listing?

Submit your product for editorial review.