Tools/microsoft/playwright

Playwright

Web testing and automation framework

99.4k ★+589/wkestablishedTypeScriptApache License 2.0 →trending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Oct 2026

Playwright drives real browsers from code: Chromium, Firefox and WebKit through one API, for end-to-end tests, scraping, screenshots and PDFs. It auto-waits for elements, runs test files in parallel by default, and ships its own test runner, codegen and a trace viewer that replays every step of a failed run. It's from Microsoft, built by the team that made Puppeteer at Google, and it's Apache 2.0.

Install with npm and it downloads browser builds, a few hundred MB by default; you can install a single browser or just the headless shell to keep CI lean. It now also ships a CLI and an MCP server aimed at AI coding agents. Version 1.63 in September 2026 added test locks so tests sharing a resource never run at the same time.

The framework is free and nothing is gated. Microsoft does sell hosted browsers: Playwright Workspaces in Azure App Testing runs tests on cloud browsers at $0.01 per Linux test minute and $0.02 for Windows. On GitHub Actions, public repos run free and private repos get 2,000 free minutes a month on the free plan. Compare Cypress Cloud at $75 a month ($67 billed annually) or BrowserStack Automate from $59 a month billed annually.

The catch: cross-browser means Safari's engine, not Safari itself, so a WebKit pass isn't a guarantee for real iPhones. And big suites need real parallel infrastructure, which is exactly what those paid services sell.

Free vs Self-Hosted vs Paid

fully free

Free: The whole framework, test runner, codegen, trace viewer, CLI and MCP server. Apache-2.0.

Self-hosted: Runs anywhere Node, Python, Java or .NET runs. Default browser download is a few hundred MB; install one browser or --only-shell to trim it.

Paid (optional infrastructure): Microsoft's Azure App Testing Playwright Workspaces bills cloud browser time at $0.01 per Linux test minute and $0.02 per Windows test minute, per second, with a 30-day trial covering 100 test minutes. It replaced Microsoft Playwright Testing, retired March 8, 2026. GitHub Actions: free for public repos; private repos get 2,000 minutes/month on GitHub Free.

Versus alternatives: Cypress Cloud Team $75/month monthly or $67/month billed annually ($799/year). BrowserStack Automate from $59/month (Chrome only) or $99/month (desktop browsers), billed annually.

Completely free. Microsoft's optional cloud browsers cost a cent per Linux test minute if you need scale.

What to do by team size

Solo
free
Small team
free; GitHub Actions covers most CI
Medium team
free; add cloud browsers only when suites get slow
Large team
free framework; budget Azure Playwright Workspaces or your own grid for parallel runs
Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Similar Tools

Score
91/100 · A+
Adoption30/30
Maintenance25/25
Community11/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 86,615 starsActive community: 5,515 forksPermissive license (Apache-2.0)

About

Stars
99,435
Forks
6,810

Explore Further

More tools in the directory