playwright breaking changes
Updated December 4, 2026
On this page
Latest version 1.65.2, released December 1, 2026. Source repository
Its 1.65.0 release drops Node.js 20. Node.js end of life dates.
playwright 1.65.0 breaking changes
- Removed
Use Node.js 22, 24 or 26, as listed in the system requirements. github.com - Behavior changed
The blob reporter again clears the content of its output directory before writing the report. github.com - Behavior changed
Field initializers now run before constructor parameter properties, so a field that reads a parameter property fails. Move the initialization into the constructor or set useDefineForClassFields to false. github.com - Behavior changed
Locations of imported calls such as test( in CommonJS now match ESM and point to a different column. github.com - Behavior changed
A sharded run now fails if no tests match in any shard. Pass --pass-with-no-tests to allow this. github.com - Behavior changed
These imports no longer get removed, so the imported file must exist. github.com - Behavior changed
Under Bun, UI mode no longer reruns tests on file changes, --only-changed does not follow imports, and --tsconfig and JSX options in tsconfig.json have no effect. Custom ESM loaders are not supported. github.com - Behavior changed
APIRequestContext
Params values are now added to the query the URL already has instead of replacing it. github.com - Behavior changed
apiRequestContext.cookies
Host-only cookies no longer match subdomains and path matching is stricter, so some cookies are no longer returned. github.com - Behavior changed
browserContext.cookies
Host-only cookies no longer match subdomains and path matching is stricter, so some cookies are no longer returned. github.com - Behavior changed
browserType.launch
Credentials in the proxy option now answer only proxy challenges. Use httpCredentials to authenticate on websites. github.com - Behavior changed
locator.ariaSnapshot
Aria snapshots no longer include unrendered text, which can change their results. github.com - Behavior changed
locator.check
An action on an inert element or inside one now times out if the element stays inert. github.com - Behavior changed
locator.clear
An action on an inert element or inside one now times out if the element stays inert. github.com - Behavior changed
locator.click
An action on an inert element or inside one now times out if the element stays inert. github.com - Behavior changed
locator.fill
An action on an inert element or inside one now times out if the element stays inert. github.com - Behavior changed
locator.selectOption
An action on an inert element or inside one now times out if the element stays inert. github.com - Behavior changed
locator.tap
An action on an inert element or inside one now times out if the element stays inert. github.com - Behavior changed
page.getByRole
Accessible names and aria snapshots no longer include unrendered text, which can change getByRole results with a name. github.com - Signature changed
test:Config.reporter
Was reporter?: LiteralUnion<'list'|'dot'|'line'|'github'|'json'|'junit'|'null'|'html'|'blob'|'perfetto', string> | ReporterDescription[]; now reporter?... npmjs.com - Signature changed
test:HtmlReporterOptions
Was type HtmlReporterOptions = {outputFolder?: string; open?: 'always' | 'never' | 'on-failure'; host?: string; port?: number; attachmentsBaseURL?: string; title?: string; noSnippets?: boolean; noCopyPrompt?: boolean; doNotInlineAssets?... npmjs.com - Signature changed
test:JsonReporterOptions
Was type JsonReporterOptions = {outputFile?: string}; now type JsonReporterOptions = {outputFile?: string, onlyFailures?: boolean}. npmjs.com - Signature changed
test:JUnitReporterOptions
Was type JUnitReporterOptions = {outputFile?: string, stripANSIControlSequences?: boolean, includeProjectInTestName?: boolean, includeRetries?: boolean, omitTags?: boolean}; now type JUnitReporterOptions = {outputFile?: string... npmjs.com - Signature changed
test:PlaywrightTestConfig.reporter
Was reporter?: LiteralUnion<'list'|'dot'|'line'|'github'|'json'|'junit'|'null'|'html'|'blob'|'perfetto', string> | ReporterDescription[]; now reporter?... npmjs.com - Signature changed
test:ReporterDescription
Was type ReporterDescription = Readonly<['blob'] | ['blob', BlobReporterOptions] | ['dot'] | ['dot', DotReporterOptions] | ['line'] | ['line', LineReporterOptions] | ['list'] | ['list', ListReporterOptions] | ['github'] | ['github'... npmjs.com - Signature changed
test:TestType.fail
Calls must pass only a description string, which is recorded as a test annotation. npmjs.com - Signature changed
test.fixme
Calls must pass only a description string, which is recorded as a test annotation. github.com - Signature changed
test.skip
Calls must pass only a description string, which is recorded as a test annotation. github.com - Signature changed
test.slow
Calls must pass only a description string, which is recorded as a test annotation. github.com
playwright 1.64.0 breaking changes
- Behavior changed
--update-snapshots=missing
Tests that only create missing snapshots now pass in the 'missing' mode. The mode used when the option is unspecified is now called 'default' and still fails the test after writing missing snapshots. github.com - Behavior changed
expect(locator).toBeVisible
Elements inside an iframe that is not visible are considered hidden by actions, isVisible() and toBeVisible(). github.com - Behavior changed
screen
The screen property from device descriptors is now applied, so window.screen and media queries see the emulated size. Set screen to undefined to keep the old behavior. github.com - Signature changed
test:Config.expect
Was expect?: {timeout?: number; toHaveScreenshot?: {animations?: "allow"|"disabled"; caret?: "hide"|"initial"; maxDiffPixels?: number; maxDiffPixelRatio?: number; scale?: "css"|"device"; stylePath?: string|Array<string>; threshold?... npmjs.com - Signature changed
test:Config.expect.toHaveScreenshot
Was toHaveScreenshot?: {animations?: "allow"|"disabled"; caret?: "hide"|"initial"; maxDiffPixels?: number; maxDiffPixelRatio?: number; scale?: "css"|"device"; stylePath?: string|Array<string>; threshold?: number; pathTemplate?: string;}... npmjs.com - Signature changed
test:Config.reporter
Was reporter?: LiteralUnion<'list'|'dot'|'line'|'github'|'json'|'junit'|'null'|'html'|'perfetto', string> | ReporterDescription[]; now reporter?: LiteralUnion<'list'|'dot'|'line'|'github'|'json'|'junit'|'null'|'html'|'blob'|'perfetto'... npmjs.com - Signature changed
test:Config.updateSnapshots
Was updateSnapshots?: "all"|"changed"|"missing"|"none"; now updateSnapshots?: "all"|"changed"|"missing"|"none"|"default". npmjs.com - Signature changed
test:FullConfig.updateSnapshots
Was updateSnapshots: "all"|"changed"|"missing"|"none"; now updateSnapshots: "all"|"changed"|"missing"|"none"|"default". npmjs.com - Signature changed
test:PlaywrightTestConfig.expect
Was expect?: {timeout?: number; toHaveScreenshot?: {animations?: "allow"|"disabled"; caret?: "hide"|"initial"; maxDiffPixels?: number; maxDiffPixelRatio?: number; scale?: "css"|"device"; stylePath?: string|Array<string>; threshold?... npmjs.com - Signature changed
test:PlaywrightTestConfig.expect.toHaveScreenshot
Was toHaveScreenshot?: {animations?: "allow"|"disabled"; caret?: "hide"|"initial"; maxDiffPixels?: number; maxDiffPixelRatio?: number; scale?: "css"|"device"; stylePath?: string|Array<string>; threshold?: number; pathTemplate?: string;}... npmjs.com
And 8 more in this version. Sign up to see every change
playwright 1.63.0 breaking changes
- Removed
Playwright 1.63 no longer supports Ubuntu 20.04. Move to a supported Ubuntu release before upgrading. github.com - Removed
@playwright.experimental-ct-react
The experimental React component testing package has been removed and is no longer published. Migrate to the story gallery model. playwright.dev - Removed
afterMount
The afterMount hook is gone. Put app-wide setup in the gallery's window.mount or in story decorators. playwright.dev - Removed
beforeMount
The beforeMount hook is gone. Put app-wide setup in the gallery's window.mount or in story decorators. playwright.dev - Removed
ctPort
The port now lives in webServer and baseURL, so ctPort is gone. playwright.dev - Removed
ctTemplateDir
The gallery now runs through your own dev server, so ctTemplateDir is gone. playwright.dev - Removed
ctViteConfig
The gallery now runs through your own dev server, so ctViteConfig is gone. Configure your dev server and webServer instead. playwright.dev - Behavior changed
On Linux arm64, Playwright now downloads the Chrome for Testing build of Chromium instead of the previous build. github.com - Signature changed
test:Config.reporter
Was reporter?: LiteralUnion<'list'|'dot'|'line'|'github'|'json'|'junit'|'null'|'html', string> | ReporterDescription[]; now reporter?: LiteralUnion<'list'|'dot'|'line'|'github'|'json'|'junit'|'null'|'html'|'perfetto', string> |... npmjs.com - Signature changed
test:JUnitReporterOptions
Was type JUnitReporterOptions = {outputFile?: string, stripANSIControlSequences?: boolean, includeProjectInTestName?: boolean, includeRetries?: boolean}; now type JUnitReporterOptions = {outputFile?: string, stripANSIControlSequences?... npmjs.com
And 8 more in this version. Sign up to see every change
playwright 1.62.0 breaking changes
- Removed
Playwright no longer supports Debian 11. Users on Debian 11 need to move to a supported Debian release. github.com - Signature changed
test:HtmlReporterOptions
Was type HtmlReporterOptions = {outputFolder?: string; open?: 'always' | 'never' | 'on-failure'; host?: string; port?: number; attachmentsBaseURL?: string; title?: string; noSnippets?: boolean; noCopyPrompt?: boolean; doNotInlineAssets?... npmjs.com - Signature changed
test:PlaywrightWorkerOptions.video
Was video: VideoMode | 'retry-with-video' | {mode: VideoMode, size?: ViewportSize, show?: {actions?: {duration?: number, position?: 'top-left' | 'top' | 'top-right' | 'bottom-left' | 'bottom' | 'bottom-right', fontSize?: number}, test?... npmjs.com - Signature changed
types/testReporter:JSONReportTest.annotations
Was annotations: {type: string, description?: string}[]; now annotations: TestAnnotation[]. npmjs.com - Signature changed
types/testReporter:JSONReportTestResult.annotations
Was annotations: {type: string, description?: string}[]; now annotations: TestAnnotation[]. npmjs.com
playwright 1.61.0 breaking changes
- Behavior changed
testInfo.errors
Code that reads testInfo.errors will now see each sub-error of an AggregateError as a separate entry instead of a single error. github.com - Signature changed
test:Expect
Was type Expect<ExtendedMatchers = {}> = {<T = unknown>(actual: T, messageOrOptions?: string | {message?: string}): MakeMatchers<void, T, ExtendedMatchers>; soft: <T = unknown>(actual: T, messageOrOptions?: string | {message?: string}) =>... npmjs.com - Signature changed
test:ListReporterOptions
Was type ListReporterOptions = {printSteps?: boolean}; now type ListReporterOptions = {printSteps?: boolean, printFailuresInline?: boolean}. npmjs.com - Signature changed
test:PlaywrightTestProject.expect
Was expect?: {timeout?: number; toHaveScreenshot?: {threshold?: number; maxDiffPixels?: number; maxDiffPixelRatio?: number; animations?: "allow"|"disabled"; caret?: "hide"|"initial"; scale?: "css"|"device"; stylePath?... npmjs.com - Signature changed
test:PlaywrightTestProject.expect.toHaveScreenshot
Was toHaveScreenshot?: {threshold?: number; maxDiffPixels?: number; maxDiffPixelRatio?: number; animations?: "allow"|"disabled"; caret?: "hide"|"initial"; scale?: "css"|"device"; stylePath?: string|Array<string>; pathTemplate?: string;}... npmjs.com - Signature changed
test:Project.expect
Was expect?: {timeout?: number; toHaveScreenshot?: {threshold?: number; maxDiffPixels?: number; maxDiffPixelRatio?: number; animations?: "allow"|"disabled"; caret?: "hide"|"initial"; scale?: "css"|"device"; stylePath?... npmjs.com - Signature changed
test:Project.expect.toHaveScreenshot
Was toHaveScreenshot?: {threshold?: number; maxDiffPixels?: number; maxDiffPixelRatio?: number; animations?: "allow"|"disabled"; caret?: "hide"|"initial"; scale?: "css"|"device"; stylePath?: string|Array<string>; pathTemplate?: string;}... npmjs.com - Signature changed
test:VideoMode
Was type VideoMode = 'off' | 'on' | 'retain-on-failure' | 'on-first-retry'; now type VideoMode = 'off' | 'on' | 'retain-on-failure' | 'on-first-retry' | 'on-all-retries' | 'retain-on-first-failure' | 'retain-on-failure-and-retries'. npmjs.com
playwright 1.60.0 breaking changes
- Removed
BrowserContext.exposeBinding
Code that passes the handle option to BrowserContext.exposeBinding must stop passing it. github.com - Removed
BrowserType.connect
Use tracing instead of the logger option. github.com - Removed
BrowserType.connectOverCDP
Use tracing instead of the logger option. github.com - Removed
Locator.ariaRef
Use locator.ariaSnapshot() instead of Locator.ariaRef(). github.com - Removed
Page.exposeBinding
Code that passes the handle option to Page.exposeBinding must stop passing it. github.com - Removed
videoSize
Use the recordVideo option instead of videoSize. github.com - Removed
videosPath
Use the recordVideo option instead of videosPath. github.com - Behavior changed
Configs that override a non-option fixture or set workers to 0 or a negative value now fail. github.com - Signature changed
types/testReporter:Reporter.onError
Was onError?(error: TestError): void; now onError?(error: TestError, workerInfo?: WorkerInfo): void. npmjs.com
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
playwright 1.59.0 breaking changes
- Removed
WebKit no longer runs on macOS 14. Upgrade macOS or stay on an older Playwright version. github.com - Removed
@playwright.experimental-ct-svelte
The @playwright/experimental-ct-svelte package has been removed and is no longer available. github.com
And 12 more in this version.
playwright 1.58.0 breaking changes
- Removed
WebKit no longer runs on macOS 13. Upgrade macOS or stay on an older Playwright version. github.com - Removed
_react
The _react selector engine was removed. Use the locators guide alternatives instead. github.com
And 3 more in this version.
playwright 1.57.0 breaking changes
- Removed
Page.accessibility
Page#accessibility was deprecated for three years and is now removed. Use an accessibility testing library such as Axe instead. github.com - Behavior changed
Console messages from Service Workers are now dispatched through the worker console event. Set PLAYWRIGHT_DISABLE_SERVICE_WORKER_CONSOLE to opt out. github.com
And 2 more in this version.
playwright 1.56.0 breaking changes
- Behavior changed
browserContext.backgroundPages
The method browserContext.backgroundPages() returns an empty list. Code that expects background pages will no longer find any. github.com - Signature changed
test:Fixtures
Was type Fixtures<T extends {} = {}, W extends {} = {}, PT extends {} = {}, PW extends {} = {}> = {[K in keyof PW]?: WorkerFixtureValue<PW[K], W & PW> | [WorkerFixtureValue<PW[K], W & PW>, {scope: 'worker', timeout?: number | undefined... npmjs.com
And 1 more in this version.
playwright 0.17.0 breaking changes
- Renamed
page.waitForSelector
The 'waitFor' option of page.waitForSelector was renamed to 'state'. Update calls that pass 'waitFor' to use 'state' instead. github.com - Default changed
page.waitForSelector
page.waitForSelector now defaults to waiting until the element is visible. Pass an explicit state if you relied on the previous default. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.