pypi / playwright
playwright
What changed in playwright 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
15 breaking2 security1 deprecations23 new APIs and options1 performance8 behavior and defaults3 tooling8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initplaywright 161 changes
Breaking changes 15
Text the browser does not render is no longer included in accessible names or aria snapshots, which can change role queries and snapshot results.
Cookie matching with a URL now follows RFC 6265, so host-only and path cookies are returned only when they match.
pyee is no longer a dependency, avoiding conflicts with packages that need a different version.
The bundled Node.js runtime distrusts compromised eMudhra intermediate CAs, affecting the driver's TLS connections such as connect_over_cdp to a wss:// endpoint.
Elements inside an iframe that is not visible are now considered hidden by actions, locator.is_visible(), and to_be_visible() assertions.
Ubuntu 20.04 is no longer supported.
Debian 11 is no longer supported.
In headless mode, the clipboard is isolated from the operating system, so tests using navigator.clipboard no longer read or overwrite the machine's clipboard.
The long-deprecated handle option has been removed from browser_context.expose_binding() and page.expose_binding().
WebKit no longer supports macOS 14; upgrade macOS or keep an older Playwright version.
The :light selector engine suffix has been removed; use standard CSS selectors instead.
WebKit no longer supports macOS 13; upgrade macOS or keep using an older Playwright version.
The _react selector has been removed; use alternatives from the locators guide.
The _vue selector has been removed; use alternatives from the locators guide.
The deprecated page.accessibility API was removed; use other libraries such as Axe to test page accessibility.
Security 2
Docker images now include the latest security updates of the Ubuntu packages.
The bundled Node.js was rolled to 26.13.1, a security release with fixes in tls, http, https, and http2 that affect the driver's network connections.
Deprecations 1
The font_size option is deprecated and replaced by the style option.
New APIs and options 23
Opt out of Playwright MCP's default support for WebMCP.
Call a WebMCP tool with playwright-cli.
List WebMCP tools with playwright-cli.
Playwright MCP offers page-defined WebMCP tools to the agent under this name.
Adds --http-credentials to record against pages behind HTTP authentication.
Adds --no-remove to keep browsers of other Playwright installations instead of removing them.
Actions accept a scroll option of "auto" or "none" to opt out of Playwright's automatic scrolling into view.
Controls where artifacts such as traces and downloads are stored when attached to an existing browser.
A virtual authenticator lets tests register passkeys and answer WebAuthn ceremonies without real hardware.
The callback now receives a timestamp for when the frame was presented by the browser.
Controls the cursor decoration rendered for pointer actions.
The new API reads and writes local and session storage for the page's current origin.
All timeout parameters now accept datetime.timedelta, including those used by navigation, locator actions, and assertions.
Adds a pretty-print toggle for JSON and form request and response bodies in the network details panel.
Connects playwright-cli to a running bound browser session.
Opens the Dashboard listing bound browsers and allowing them to be inspected and interacted with.
Displays visual annotations that highlight interacted elements and show action titles during recording.
Adds chapter titles and descriptions to screencast videos.
The new is_local option tells Playwright it runs on the same host as the CDP server, enabling file system optimizations.
A new system theme option follows your OS dark/light mode preference.
Set this environment variable to opt out of dispatching Service Worker console messages through worker.on("console").
Set this environment variable to opt out of reporting and routing network requests issued by Service Workers.
In Chromium, network requests issued by Service Workers are reported and can be routed through BrowserContext.
Performance 1
Videos are encoded with VP9 instead of VP8, using less CPU and producing smaller files of the same or better quality.
Behavior and default changes 8
The cursor stays visible at the last action point, survives navigations, and travels along a natural, eased path.
HAR recordings now include WebSocket requests.
Trace recordings now include WebSocket requests.
Objects returned from more APIs, including screencast.show_actions() and screencast.show_overlays(), now support use with async with.
JSON responses are automatically formatted for readability.
The Network details panel has been reorganized for better usability.
Playwright now uses Chrome for Testing builds instead of Chromium, for headed and headless browsers; Arm64 Linux continues to use Chromium.
Aria snapshots now render and compare input placeholders.
Tooling 3
Playwright now publishes a source distribution alongside wheels, enabling installs that do not accept wheels; source installs use a pre-installed Node.js set with PLAYWRIGHT_NODEJS_PATH.
Adds a trace viewer mode that shows an action screenshot beside the aria snapshot and highlights an aria node on the screenshot when hovered.
Search with Cmd/Ctrl+F is now available in code editors.
Fixes and other changes 8
Playwright rolls Chromium to version 159.0.8154.6.
The bundled Chromium version is 158.0.8127.18.
Docker images now include libatomic1, which the driver's Node.js binary needs.
The bundled Mozilla Firefox version is 159.0.
The bundled Chromium browser version is 156.0.8078.4.
The bundled Mozilla Firefox browser version is 157.0.
The bundled WebKit browser version is 27.2.
Playwright now supports Ubuntu 26.04.