Playwright logo

Playwright

Cross-browser end-to-end testing and automation for Chromium, Firefox, and WebKit

Open Source Alternative to
Repository activity
  • Stars91k
  • Forks5.9k
  • Open Issues168
License

Apache-2.0

Languages
  • TypeScript
  • HTML
  • CSS
Get it:Website
Playwright screenshot

About Playwright

Playwright is a framework for end-to-end testing and browser automation. It drives Chromium, Firefox, and WebKit through a single API, so one test suite covers the engines behind Chrome, Edge, Safari, and Firefox.

Tests run headless or headed across Windows, macOS, and Linux, with auto-waiting that removes flaky timing code, network interception, isolated browser contexts, and a trace viewer that records each step for debugging. Bindings cover JavaScript, TypeScript, Python, Java, and .NET, and a code generator turns recorded actions into runnable scripts.

Maintained by Microsoft under the Apache 2.0 license, it downloads browsers on demand and runs entirely on your own machines or CI, with no account or hosted service required.

Key features

  • Single API automates Chromium, Firefox, and WebKit
  • Auto-waiting removes most flaky timing failures
  • Network interception and request mocking
  • Trace viewer records steps, snapshots, and logs
  • Code generator turns actions into runnable scripts

Details

First released
2019
Languages
JS · TS · Python · Java · .NET
Browsers
Chromium · Firefox · WebKit
Platforms
Windows · macOS · Linux
Execution
Headless or headed, parallel
CI
Docker image · GitHub Actions