Migrating to Playwright v1.57.0
Version v1.57.0 introduces 1 breaking change. This guide details how to update your code.
Released: 11/25/2025
1
Breaking Changes
4
Migration Steps
13
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
Page#accessibilitytestConfig.webServer.waittestConfig.tagworker.on('console')worker.waitForEventlocator.describelocator.descriptionLocator.toStringlocator.click (steps option)locator.dragTo (steps option)Service Worker network handling in BrowserContextPLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORKPLAYWRIGHT_DISABLE_SERVICE_WORKER_CONSOLEBreaking Changes
●Issue #1
Removed `Page#accessibility` from the API. Use alternative libraries such as Axe for accessibility testing. Update code to remove calls to `page.accessibility()` and integrate Axe per the Playwright accessibility guide.
Migration Steps
- 1Search and replace any usage of `page.accessibility()` with Axe integration as described in the Playwright accessibility testing guide.
- 2If you rely on the previous Chromium binary, note that Playwright now uses Chrome for Testing; no code changes required unless you need the old Chromium, in which case you can pin to an older Playwright version.
- 3To use the new `webServer.wait` feature, add a `wait` object with `stdout` or `stderr` regex to your test config.
- 4If you need to disable the new Service Worker network or console handling, set the environment variables `PLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK=1` or `PLAYWRIGHT_DISABLE_SERVICE_WORKER_CONSOLE=1` respectively.
Release Summary
Playwright 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.
Need More Details?
View the full release notes and all changes for Playwright v1.57.0.
View Full Changelog