Playwright: Web testing and automation framework
Cross-browser automation framework with built-in test runner.
Learn more about Playwright
Playwright is a Node.js framework for automating and testing web applications across multiple browser engines. It uses out-of-process browser automation, running tests in separate processes from the test runner to avoid typical in-process limitations. The framework includes auto-wait mechanisms for element readiness, web-first assertions with automatic retry logic, and support for multiple browser contexts within a single test. Common use cases include cross-browser end-to-end testing, web scraping, and automated user interaction testing across Chromium, Firefox, and WebKit on Linux, macOS, and Windows.
Out-of-Process Browser Automation
Tests run in separate processes from browsers, avoiding the constraints of in-process runners. Enables testing multiple tabs, origins, and user contexts simultaneously within a single test without architectural limitations.
Unified Multi-Browser API
Single API automates Chromium, Firefox, and WebKit without engine-specific code. Browser contexts provide full test isolation with independent profiles and minimal overhead, eliminating cross-test contamination.
Auto-Wait and Retry
Automatically waits for elements to become actionable before interactions and retries assertions until conditions are met. Eliminates manual timeout management and reduces flaky tests caused by timing issues.
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('https://example.com');
await page.fill('#search', 'playwright');
await page.click('button[type="submit"]');
await page.screenshot({ path: 'results.png' });
await browser.close();
})();This release fixes trace viewer path handling via stdin and removes forced SwiftShader usage on Chromium for Mac.
- –Chromium 145.0.7632.6
- –Mozilla Firefox 146.0.1
- –WebKit 26.0
This release includes fixes for Microsoft Edge local network permissions, updates to download locations, and WebKit frame session improvements.
- –Chromium 145.0.7632.6
- –Mozilla Firefox 146.0.1
- –WebKit 26.0
This release adds a new token-efficient CLI mode, system theme support, search functionality, and improved network details panel.
- –New 'system' theme option follows your OS dark/light mode preference
- –Search functionality is now available in code editors
- –Network details panel has been reorganized for better usability
- –JSON responses are now automatically formatted for readability
- –Removed react and vue selectors. See locators guide for alternatives
See how people are using Playwright
Top in Developer Tools
Related Repositories
Discover similar tools and frameworks used by developers
pybind11
Header-only library creating minimal-boilerplate C++ Python bindings.
Babel
JavaScript compiler transforming modern code into browser-compatible versions via AST.
n
A command-line utility for installing, switching between, and managing multiple Node.js versions on Unix-like systems.
QR Scanner
Webcam and image QR detection with native API fallback.
GoogleTest
xUnit-based C++ testing framework with integrated mocking.