Migrating to Playwright v1.60.0
Version v1.60.0 introduces 4 breaking changes. This guide details how to update your code.
Released: 5/11/2026
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
tracing.startHartracing.stopHarlocator.dropexpect(page).toMatchAriaSnapshotLocatorPagelocator.ariaSnapshotpage.ariaSnapshottest.abortbrowser.on('context')BrowserContextbrowserContext.on('download')browserContext.on('frameattached')browserContext.on('framedetached')browserContext.on('framenavigated')browserContext.on('pageclose')browserContext.on('pageload')page.getByRolelocator.getByRoleframe.getByRoleframeLocator.getByRoleexpect(locator).toHaveCSSlocator.highlightpage.hideHighlightwebSocketRoute.protocolsbrowserType.connectOverCDPwebError.locationconsoleMessage.locationtestInfoError.errorContextreporter.onErrortestProject.snapshotPathTemplateLocator.ariaRefBrowserContext.exposeBindingPage.exposeBindingBrowserType.connectBrowserType.connectOverCDPBreaking Changes
●Issue #1
Removed long-deprecated API: `Locator.ariaRef()`. Fix: Use the standard locator.ariaSnapshot() pipeline instead.
●Issue #2
Removed long-deprecated option: `handle` option on BrowserContext.exposeBinding and Page.exposeBinding.
●Issue #3
Removed long-deprecated option: `logger` option on BrowserType.connect and BrowserType.connectOverCDP. Fix: Use tracing instead.
●Issue #4
Removed long-deprecated Context options: `videosPath` / `videoSize`. Fix: Use recordVideo instead.
Migration Steps
- 1If using Locator.ariaRef(), replace usage with the locator.ariaSnapshot() pipeline.
- 2If using the 'handle' option on exposeBinding, update usage.
- 3If using the 'logger' option on BrowserType.connect or BrowserType.connectOverCDP, use tracing instead.
- 4If using context options 'videosPath' or 'videoSize', use recordVideo instead.
- 5Update consoleMessage.location() usage to use 'line'/'column' instead of 'lineNumber'/'columnNumber'.
Release Summary
This release introduces significant new APIs for HAR recording, simulated drag-and-drop via locator.drop(), and test abortion via test.abort(). It also removes several long-deprecated APIs and enhances ARIA snapshotting capabilities.
Need More Details?
View the full release notes and all changes for Playwright v1.60.0.
View Full Changelog