pypi / playwright
playwright
What changed in playwright 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
4 breaking1 deprecations7 new APIs and options1 performance1 behavior and defaults1 tooling
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initplaywright 115 changes
Breaking changes 4
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.
Deprecations 1
The font_size option is deprecated and replaced by the style option.
New APIs and options 7
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.
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 1
The cursor stays visible at the last action point, survives navigations, and travels along a natural, eased path.
Tooling 1
Adds a trace viewer mode that shows an action screenshot beside the aria snapshot and highlights an aria node on the screenshot when hovered.