Skip to content

Upgrade Playwright to 1.64.1 - #36

Merged
fiws merged 1 commit into
mainfrom
push-upgrade-playwright-1-64
Nov 9, 2026
Merged

fiws merged 1 commit into
mainfrom
push-upgrade-playwright-1-64

Conversation

@fiws

@fiws fiws commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Upgrades playwright-core, playwright, and @playwright/test to 1.64.1 and wraps the new 1.64 APIs.

Breaking changes

  • Page.content and Frame.content are now methods taking Playwright's new includeShadow option. Replace yield* page.content with yield* page.content().
  • The @playwright/test peer dependency now requires ^1.64.1.
  • Playwright 1.64 considers elements inside hidden iframes hidden for actions and Locator.isVisible().

New APIs

  • Locator.within(locator): accepts a wrapped or a native locator, like and/or.
  • Page.getByRef(ref): locates an element by an aria ref from ariaSnapshot({ mode: "ai" }).
  • Page.webmcp and Frame.webmcp: backed by the new Playwright.WebMCP service (tools(), callTool()) with named WebMCPTool / WebMCPToolAnnotations types.
  • includeShadow option on Page.content() / Frame.content().
  • The new fps and action style video options flow through the existing Playwright option types.

Fixes

  • Tracing.start and Tracing.startChunk now return a Disposable in Playwright 1.64. The wrapper drops it so the result stays void, as Screencast.start already does.

Not wrapped

  • APIRequestContext cookie methods (addCookies, cookies, clearCookies): this library does not wrap APIRequestContext yet.

Verification

  • pnpm check, pnpm type-check, pnpm test (109 tests), and pnpm check-doc-examples pass.
  • Smoke-tested against Chromium 156: within resolved per-row cells, content({ includeShadow: true }) serialized the shadow root, getByRef resolved a ref from an ai aria snapshot, and webmcp.tools() / callTool("add", { a: 2, b: 40 }) returned the registered tool and "42" (with --enable-features=WebMCP, page served over HTTP).

@pkg-pr-new

pkg-pr-new Bot commented Oct 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/effect-playwright@718bda5

commit: 718bda5

@fiws fiws self-assigned this Oct 28, 2026
@fiws
fiws merged commit 7ffe2b4 into main Nov 9, 2026
4 checks passed
@fiws
fiws deleted the push-upgrade-playwright-1-64 branch November 9, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant