Playwright

Open Source

by Playwright

Provided by Playwright

Not yet rated
Platform
Windows / Linux / macOS
Pricing
Open Source
Account required
No
Ads
None
Last verified
8 hours ago
Developer
Playwright
Official URL

Overview

Playwright is an open-source browser automation framework from Microsoft. It gives you one API for driving Chromium, Firefox and WebKit, and is used mostly for end-to-end testing of websites and web apps, as well as for scripting browsers and, more recently, letting AI agents operate a browser.

It is built to cut down on flaky tests. Actions wait automatically until an element is ready, assertions retry until the condition is met, and each test runs in a fresh browser context so tests do not interfere with each other. Locators can find elements by role or text instead of fragile selectors. Tests can run in parallel and be split across machines. When a test fails, the Trace Viewer shows a timeline with page snapshots, network requests, console logs and screenshots, and a test generator can record your clicks and turn them into code. The library can also emulate mobile devices and intercept network requests.

Playwright runs on Windows, macOS and Linux, with or without a visible browser window, and has versions for TypeScript and JavaScript on Node.js, Python, .NET and Java. There is a VS Code extension for running and debugging tests, and a Model Context Protocol server for AI agents. It is released under the Apache 2.0 licence.

Features

  • One API for Chromium, Firefox and WebKit
  • Automatic waiting and retrying assertions
  • Fresh browser context for every test
  • Locators that find elements by role or text
  • Parallel runs and sharding across machines
  • Trace Viewer with page snapshots, network requests, console logs and screenshots
  • Test generator that records browser actions as code
  • Device emulation and network request interception
  • Versions for TypeScript, Python, .NET and Java

Privacy

See the official privacy policy. Playwright is a library that runs on your own machine or CI; no advertising scripts were found on its website.

Pros & Cons

Pros

  • Open source under the Apache 2.0 licence
  • Covers the three main browser engines with the same tests
  • Available in four programming language families
  • Strong debugging tools, including traces captured on failure

Cons

  • Requires programming knowledge to write and maintain tests
  • The test generator only gives a starting point; tests still live in code
  • No hosted service of its own: you provide the machines or CI that run the tests

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Testing · ShellCheck

    Finds bugs in shell scripts.

    Not yet rated
    Open Source Web Windows
  • Testing · Jest

    Tests JavaScript code with a zero-config testing framework.

    Not yet rated
    Open Source Web
  • Testing · Selenium

    Automates browser testing across many languages.

    Not yet rated
    Open Source Windows Linux
  • Testing · Cypress

    Tests web applications end-to-end in the browser.

    Not yet rated
    Open Source Windows Linux