Playwright
Dev ToolsPlaywright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
Release History
v1.58.22 fixesThis release focuses on bug fixes, specifically enabling stdin path usage in the trace viewer and removing forced Swiftshader usage on macOS Chromium. It also updates underlying browser engine versions.
v1.58.12 fixesThis release updates the underlying browser engines and includes fixes for msedge network permissions and webkit frame sessions.
v1.58.0Breaking6 featuresThis release introduces timeline visualization in HTML reports and several usability enhancements to the UI Mode and Trace Viewer, alongside removing legacy selectors and the `devtools` launch option.
v1.57.0Breaking10 featuresPlaywright 1.57 introduces the Speedboard report tab, switches to Chrome for Testing, adds a `webServer.wait` option, several new APIs, and removes the deprecated `Page#accessibility` method.
v1.56.1Breaking1 fix2 featuresThis release introduces a local-network-access permission for Chromium, renames the agents module to test agents (a breaking change), adds a cwd fallback for test config, and fixes a VS Code mcp workspaceFolder reference.
v1.56.0Breaking10 featuresThis release adds Playwright Agents, several new page APIs, UI/HTML reporter enhancements, and removes the backgroundpage event, requiring migration for any existing background page handling.
v1.55.1Breaking3 fixesThis release upgrades browser binaries, fixes several regressions, reverts an a11y change, and removes the `-k` CLI option, requiring minor migration adjustments.
v1.55.0Breaking3 featuresThis release introduces the TestStepInfo.titlePath API, automatic toBeVisible() assertions in Codegen, and Debian 13 support, while dropping Chromium extension manifest v2 support.
v1.54.2This release updates browser versions to Chromium 139.0.7258.5, Firefox 140.0.2, and WebKit 26.0, and highlights regression issues affecting Playwright Codegen on Windows and language targeting.
v1.54.11 fix5 featuresPlaywright 1.54.0 updates the bundled Chromium, Firefox, and WebKit versions and adds testing against Chrome and Edge 140, but introduces a regression where browser downloads fail when using an HTTP(S) proxy.
v1.54.0Breaking4 featuresThis release adds partitioned cookie support, new reporting options, and a CLI flag for user data directories, while removing the `-gv` flag, changing the behavior of `playwright open`, and dropping Node.js 16 support.
v1.53.23 fixesThis release addresses several regressions and a launch bug in Edge, with updated browser versions and compatibility testing.
v1.53.11 fixThis release primarily fixes the display of HTTP methods in fetch trace entries, while also noting regressions in click handling, textarea filling, and viewport sizing.
v1.53.05 featuresPlaywright introduces new Trace Viewer steps, a customizable HTML reporter title, a `kind` option for snapshot paths, the `locator.describe()` method, and an enhanced `playwright install --list` command.
v1.52.0Breaking7 featuresPlaywright introduces new assertions, test runner options, and API enhancements while breaking glob pattern handling in routing and removing Cookie header overrides.
v1.51.1This release updates browser versions to Chromium 134.0.6998.35, Firefox 135.0, and WebKit 18.4, and includes regression reports for TimeoutOverflowWarning and a TypeError in expectInfo.
v1.51.08 featuresPlaywright adds IndexedDB storage state, a copy‑prompt button, visible element filtering, git info capture, enhanced test step API, contrast emulation, strict API request status handling, and predicate support for URL assertions.
v1.50.14 fixes1 featureAdds a new feature for a single ARIA snapshot across browsers and fixes several bugs related to snapshot handling and Firefox keepalive behavior.
v1.50.0Breaking1 fix14 featuresPlaywright introduces step timeouts, a skip API for test steps, expanded ARIA snapshot support, new accessibility assertions, and several UI and configuration enhancements, while tightening editable element checks and changing snapshot update defaults.
Common Errors
InvalidFileError1 reportThe "InvalidFileError" in Playwright usually means the file path provided to methods like `setInputFiles` or `getByRole('button', {name: 'upload'}).setInputFiles` is incorrect or the file doesn't exist at that location. To fix it, carefully verify the file path in your code is accurate, ensuring it's relative to the Playwright context or an absolute path. Also, double-check the file actually exists at the specified location.
TargetClosedError1 reportTargetClosedError in Playwright usually happens because you're trying to interact with a page/browser context that has already been closed or navigated away from unexpectedly. Ensure your code awaits navigation events or page close operations before attempting further actions on that page. Add specific error handling around page interactions (like try/catch blocks) to gracefully handle cases where the target might be closed, and retry if appropriate or log the issue for investigation.
CallEndReasonMediaOfferProcessingError1 reportCallEndReasonMediaOfferProcessingError usually indicates issues with SDP negotiation, often due to mismatched or incompatible codecs desired by the Playwright browser and the application under test. Ensure your application and Playwright configuration both support common audio/video codecs (like VP8, VP9, H264, Opus, PCMU/PCMA) and that any SDP constraints or media preferences are aligned and properly negotiated. Check for firewall restrictions or network issues that might be interfering with SDP exchange.
Related Dev Tools Packages
Empowering everyone to build reliable and efficient software.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
Next generation frontend tooling. It's fast!
An extremely fast Python package and project manager, written in Rust.
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Rich is a Python library for rich text and beautiful formatting in the terminal.
Subscribe to Updates
Get notified when new versions are released