Merged
Conversation
yury-s
approved these changes
Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Highlights
show --annotate— provide agent with visual and structural feedback while developing or testing. (microsoft/playwright#40262, microsoft/playwright#40238)dropcommand for files and clipboard-like data — drop files or typed data (text/plain,text/html, etc.) onto an element from outside the page. Useful for file-upload widgets and drag-from-desktop scenarios whereuploaddoesn't fit. (microsoft/playwright#40367, microsoft/playwright#40283)highlightcommand for visual confirmation — show a persistent highlight overlay on an element (with optional custom CSS via--style), and hide one or all overlays with--hide. Lets coding agents visually confirm what they're about to act on. (microsoft/playwright#40213, microsoft/playwright#40215, microsoft/playwright#40219)generate-locatorcommand — produce a stable Playwright locator expression for an element ref. Pair with--rawto feed locators straight into test assertions. (microsoft/playwright#40313)--jsonglobal flag — wrap every reply as structured JSON for machine parsing. (microsoft/playwright#40284)snapshot --boxes— include each element's bounding box as[box=x,y,width,height]in aria snapshots, making it easy to drive coordinate-based tools off of a snapshot. (microsoft/playwright#40389)Discover attachable system browsers with
list --all— surfaces Chrome/Edge instances running with remote debugging soattach --cdp=<channel>has something to connect to. (microsoft/playwright#40253, microsoft/playwright#40342)detachcommand and channel-named attach sessions — attach sessions now use the channel name (e.g.chrome,msedge) and can be cleanly detached without closing the underlying browser. (microsoft/playwright#40408)Skill discoverable from
--help—playwright-cli --helpnow prints the path to the installed agent skill, so coding agents can find it without being told. (microsoft/playwright#40274)run-codeaccepts a file —playwright-cli run-code --filename=./script.jsruns a Playwright snippet from disk instead of the command line. (microsoft/playwright-cli#337)Behavior changes
attachnow requires an explicit target; bareattachis no longer allowed. (microsoft/playwright@f7555ef)Fixes
fix(cli): exit daemon when extension connection fails— no more orphaned daemons when the browser extension can't connect. (microsoft/playwright#40328)fix(cli): prefix bare filenames with ./ in printed links— output file links now open reliably in terminals and editors. (microsoft/playwright#40311)fix(cli): show "(no browsers)" when list is empty without --all— clearer empty-state output fromlist. (microsoft/playwright#40277)fix(mcp): disable CDP timeout for extension connection— long-running extension attaches no longer time out. (microsoft/playwright#40265)fix(mcp): support page close via extension in protocol v2— closing tabs through the extension works again. (microsoft/playwright#40249)fix(mcp): throw clear error for tab creation in extension protocol v1— replaces a cryptic failure with a readable message. (microsoft/playwright#40261)fix(mcp): ensure --proxy-server overrides config-file proxy— explicit CLI proxy now wins over the config value. (microsoft/playwright#40212)fix(server): close browsers when PlaywrightServer shuts down— cleaner shutdown, no lingering browser processes. (microsoft/playwright#40294)Upgrading