playwright-cli v0.1.23

v0.1.23
Added 4
  • The tab-new command accepts an --isolated-context flag so tabs with the same context name share login state while different names stay isolated
  • The console and requests commands accept an --all flag to include retained entries from earlier navigations, with request numbers remaining stable
  • The find command accepts a --max-results flag that limits returned matches and reports the total match count
  • The cookie-delete command accepts --domain and --path options to remove only the cookie matching the given name, domain and path
Changed 1
  • The video-start command records videos using VP9 encoding, reducing file size and encoding CPU usage while keeping WebM output
Fixed 9
  • The close command lets the browser shut down normally instead of force-killing it, preventing temporary app-clone folders from accumulating on macOS
  • Update checks honor npm registry, scoped registry, proxy and authentication settings when a custom registry is configured
  • Asynchronous run-code route handler errors are reported once with their original message, without duplication or an extra Error prefix
  • The attach --cdp connection no longer hangs on discarded or crashed tabs without a renderer, and a follow-up closes those tabs while preserving live ones
  • Attaching over CDP to an already-loaded page discovers nested local frames correctly instead of replacing the main document with a sandboxed iframe
  • Action targets accept JavaScript, Python, Java and C# locators, and invalid targets explain the accepted forms including passing a bare snapshot ref
Security 1
  • A redactUrlParams setting in .playwright/cli.config.json replaces specified URL query and fragment parameter values with <redacted> in command responses

1 change to check, marked in the notes below

From playwright-cli

✨ Highlights
  • 👥 Use different signed-in users in one session — playwright-cli tab-new https://example.com --isolated-context=user-b opens a tab with separate cookies and storage. Tabs with the same context name share their login state; different names stay isolated. (microsoft/playwright#43087)
  • 🎬 Smaller video recordings with less encoding CPU — playwright-cli video-start demo.webm now records with VP9, keeping the same WebM output format. Stop and save the recording with playwright-cli video-stop. (microsoft/playwright#43021)
  • 📋 Keep console messages and requests across navigations (#479) — playwright-cli console --all and playwright-cli requests --all include retained entries from earlier navigations, so warnings and failed requests are not lost when checking a multi-page flow. Request numbers stay stable for playwright-cli request 5. (microsoft/playwright#43526)
  • 🔎 Keep common searches from flooding the agent's context (microsoft/playwright#42077) — playwright-cli find button --max-results=5 returns at most five matching items and reports the total match count. (microsoft/playwright#42947)
  • 🍪 Delete one site's cookie without signing out of others (microsoft/playwright#43310) — playwright-cli cookie-delete session_id --domain=example.com --path=/ removes only the cookie matching that name, domain and path, leaving same-named cookies elsewhere intact. (microsoft/playwright#43319)
  • 🔒 Redact session tokens in URLs printed in responses (microsoft/playwright-mcp#1791) — add "redactUrlParams": ["access_token", "code"] to .playwright/cli.config.json to replace those query and fragment parameter values with <redacted> in command responses. (microsoft/playwright#43258)
🐛 Fixes
📦 Upgrading
npm install -g @playwright/cli@0.1.23

This release uses Playwright 1.65.0-alpha-2026-10-30.

View original

Upgraded? How did it go?

Discussion