What microsoft/playwright shipped
Written by FoxPlug from the repository's own releases; not affiliated with Microsoft. Paste your own repository in the box below and FoxPlug writes the same weekly update for your product. This page is an automatic summary of the releases, pull requests and commits in github.com/microsoft/playwright; Microsoft did not write it and does not use or endorse FoxPlug. Every line links to the change it describes.
Get a weekly update like this for your product, free
Week of November 16, 2026
What shipped
- Connect to running Chromium browsers using remote-debugging:// or extension:// URLs with connectOverCDP. Pull request #44247
- List browser profiles and attach to them by name with the CLI using list --all and attach --profile-dir-name. Pull request #44243
- Chromium rolls now run directly from this repository instead of a separate repository. Pull request #44206
- BrowserType.connect now accepts launchOptions to configure browser launch parameters. Pull request #44106
- UI mode now shows the trace viewer in a frame from its own server for better isolation. Pull request #44196
- HTML reporter adds a blink mode to toggle between actual and expected images in mismatch views. Pull request #44131
- Trace file routes now send sandbox content security policy and check WebSocket origin. Pull request #44178
- The /json endpoint was removed and connect() now requires the full endpoint path. Pull request #44190
- MCP no longer waits longer than 10 seconds for busy pages when connecting over CDP. Pull request #44105
- Docker images now pin exact Node.js versions instead of only major versions. Pull request #44156
Why it matters
This week brings improvements to browser attachment and profiling, infrastructure changes with Chromium rolls moving to the main repository, and security enhancements for trace viewing and server connections. The UI mode trace viewer isolation and new reporting features improve the developer experience when debugging tests.
Changelog entry
- Feat(chromium): attach to running browser with remote-debugging:// or extension:// URL Pull request #44247
- Feat(cli): list browser profiles and attach to profile with --profile-dir-name Pull request #44243
- Devops: Chromium rolls now run from this repository Pull request #44206
- Feat(connect): add launchOptions option to browserType.connect Pull request #44106
- Fix(ui-mode): show trace viewer in frame from its own server Pull request #44196
- Feat(html-reporter): add blink mode for image mismatches Pull request #44131
- Fix(server): sandbox trace file routes and check WebSocket origin Pull request #44178
- Fix(server): remove /json endpoint, require full path in connect() Pull request #44190
- Fix(mcp): limit page attachment wait to 10s when connecting over CDP Pull request #44105
- Devops: pin exact Node.js versions in Docker images Pull request #44156
- Chore: remove unused Frame._evaluateExposeUtilityScript Pull request #44274
- Chore: remove.NET API generator and generateApiJson.js Pull request #44244
Playwright now supports attaching to running browsers via remote-debugging or extension URLs, listing browser profiles, and passing launchOptions to connect(). Chromium rolls run from the main repo. UI mode trace viewer runs in its own frame.
New features this week in Playwright: attach to running Chromium browsers using remote-debugging:// or extension:// URLs, list and attach to browser profiles by name, and pass launchOptions when connecting to browsers. Infrastructure improvements include Chromium rolls running directly from the repository. UI mode trace viewer now runs in an isolated frame, and the HTML reporter adds image blink mode for comparing actual vs expected.
Week of November 9, 2026
What shipped
- Playwright v1.65.0 was released and the test runner can now run under Bun using the --bun flag. Release
- Playwright v1.65.1 was released with fixes for a decorated class regression in 1.65 and test locations under Bun 1.4.4+. Release
- The JUnit reporter gained addFileAttribute and fileRoot options, with matching environment variables, and file attributes are off by default. Pull request #44107
- The extension now keeps a single owner table so clients can only command tabs they own, and the connect page lets users pick one tab group or several tabs. Pull request #44047
- With locateOnlyVisible, first, last and nth now select among visible elements, and an explicit visibility filter takes priority. Pull request #44083
- The test runner resolves package.json imports specifiers with tsc semantics, trying each target until one points to an existing file. Pull request #44010
- Tracing now holds dropped screencast frames while throttling instead of acking them immediately, and other clients still ack at once. Pull request #44068
- Screenshots with animations disabled now skip only animations on ScrollTimeline and ViewTimeline, and other timelines are finished or cancelled as before. Pull request #44061
- The jammy, noble and resolute Docker images now run apt-get upgrade during the build to pick up security fixes. Pull request #44059
- Chromium was rolled to r1255, version 159.0.8154.6. Pull request #44098
Why it matters
This week brought two patch releases, v1.65.0 with Bun support for the test runner and v1.65.1 with fixes for a class-fields regression and Bun test locations. Reporters, locators and the test runner's module resolution gained options that change how output and test discovery behave. The extension and tracing work affects how clients share tabs and how recordings behave under throttling.
Changelog entry
- Released v1.65.0 with Bun support for the test runner via the --bun flag. Release
- Released v1.65.1 with fixes for a decorated class regression in 1.65 and one-column test location offset under Bun 1.4.4+. Release
- Added JUnit reporter options addFileAttribute and fileRoot, with environment variables, both off by default until configured. Pull request #44107
- Added tab ownership to the extension so clients only command owned tabs, plus resumable tab groups chosen from the connect page. Pull request #44047
- LocateOnlyVisible now selects among visible elements in first, last and nth, with explicit visibility filters taking priority. Pull request #44083
- The test runner resolves package.json imports specifiers with tsc semantics, with tsconfig paths keeping priority. Pull request #44010
- Tracing holds dropped screencast frames while throttling instead of acking them at once. Pull request #44068
- Screenshots with animations disabled skip only ScrollTimeline and ViewTimeline animations. Pull request #44061
- Docker images run apt-get upgrade during the build to pick up security fixes. Pull request #44059
- Rolled Chromium to r1255, version 159.0.8154.6. Pull request #44098
- Removed the internal browserType._connectToWorker method, worker._disconnect and the Worker.disconnect protocol command. Pull request #44097
- A cancelled file chooser in
browser_file_uploadnow generates no code instead of setFiles(undefined). Pull request #44104
Playwright v1.65.1 is out, following v1.65.0 with Bun support for the test runner via the --bun flag. This week the JUnit reporter gained addFileAttribute and fileRoot, locateOnlyVisible changes first, last and nth to pick among visible elements, and the test runner resolves pack
Playwright v1.65.1 shipped this week, following v1.65.0, which lets the test runner run under Bun with the --bun flag. The JUnit reporter gained addFileAttribute and fileRoot options, off by default so existing output is unchanged. With locateOnlyVisible, first, last and nth now select among visible elements. The test runner resolves package.json imports specifiers with tsc semantics. The extension now keeps one owner table so a client can only send commands to tabs it owns, and the Docker images upgrade base packages during the build.
Week of November 2, 2026
What shipped
- Released version 1.65.0, which adds running tests with Bun via the --bun flag so Bun transpiles TypeScript test files itself. Release
- The test runner's retries option now accepts a list of count and condition entries, so retries can depend on the error message of a failed attempt. Pull request #43929
- Fixed Chromium's new headless mode to account for tabs and toolbar in window insets, so videos and trace screenshots capture the full page area. Pull request #43904
- Fixed zip extraction to never write through a symlink, opening extracted files with the wx flag so a crafted archive cannot escape the extraction directory. Pull request #43910
- Fixed the trace viewer to reject unsafe snapshot attribute names that could bypass the on handler filter or smuggle extra attributes. Pull request #43911
- Publishing now puts npm packages under a pending dist-tag and promotes them once they are live, with a new workflow running after each publish. Pull request #43979
- Documented retrying failed tests for.NET, covering the Retry attribute and the Microsoft.Testing.Platform retry extension. Pull request #43920
- Added the v1.65 release notes for Node.js, Python, Java and.NET. Pull request #43874
- Added a.dockerignore to the Docker build context so version control metadata, registry credentials and local env files never reach the builder. Pull request #43883
- The pull-request call in the bot publish workflow now takes an optional base branch for the pull request it opens. Pull request #43892
Why it matters
This week brings a new release with Bun support in the test runner, plus a retries option that can be conditioned on the error a test failed with. Several fixes harden the trace viewer and zip extraction against crafted input, and the Chromium headless mode now captures the full page area in videos and traces.
Changelog entry
- Released v1.65.0 with Bun support in the test runner. Release
- Test runner retries can be conditioned on the error message. Pull request #43929
- Fixed window insets in Chromium's new headless mode for page area capture. Pull request #43904
- Zip extraction no longer writes through symlinks. Pull request #43910
- Trace viewer rejects unsafe snapshot attribute names. Pull request #43911
- Npm packages publish under a pending dist-tag and are promoted once live. Pull request #43979
- Documented retrying failed tests for.NET. Pull request #43920
- Added v1.65 release notes for Node.js, Python, Java and.NET. Pull request #43874
- Added a.dockerignore to the Docker build context. Pull request #43883
- Bot pull requests can target a specified base branch. Pull request #43892
- Added a skill that rolls runtime dependencies flagged by npm audit. Pull request #43909
- Bumped the extension version to 0.5.0. Pull request #43872
Playwright 1.65.0 is out: run tests with Bun using the --bun flag. The test runner's retries option now accepts conditions on the error message. Plus fixes for trace viewer snapshot attributes, zip extraction through symlinks, and Chromium headless window insets.
Playwright 1.65.0 is released. The test runner now runs under Bun when you pass the --bun flag, and Bun transpiles your TypeScript test files itself. The retries option accepts a list of count and condition entries, so retries can depend on the error that failed the attempt. This week also fixed unsafe snapshot attribute names in the trace viewer, made zip extraction refuse to write through a symlink, and corrected window insets in Chromium's new headless mode so screencast videos and trace screenshots capture the full page area. Release notes for Node.js, Python, Java and.NET are available.
Week of October 26, 2026
What shipped
- Adds the documented PLAYWRIGHT_TRANSFORM_CACHE_DIR variable, renamed from the internal PWTEST_CACHE_DIR, so the transform cache can live in a private directory on shared Linux machines without changing the default location. Pull request #43733
- Keeps the CLI session, dashboard and browser.bind sockets in XDG_RUNTIME_DIR/playwright on Unix, falling back to the temporary directory when it is unset or unusable. Pull request #43732
- Replaces chokidar with native fs.watch in the test watcher, using one recursive watch per test directory on macOS and Windows and per-directory non-recursive watches elsewhere. Pull request #43716
- Serves each server, including its WebSocket, under a random path that is stripped before routing, so no server path is guessable and route handlers stay the same. Pull request #43694
- Stops the selector generator from throwing when the css fallback path is not unique, which happened with slotted elements that have identical twins in the host shadow root. Pull request #43705
- Disallows skips in afterEach and afterAll hooks instead of allowing them while the worker runs hooks after a test has finished. Pull request #43713
- Falls back to the aria-labelledby attribute when element reflection is unavailable, fixing getByLabel, role names and toHaveAccessibleName on Android WebView and older Electron. Pull request #43722
- Adds OCI source and version labels to the Docker images, pointing source at the repository and setting version to the Playwright version passed from build.sh. Pull request #43801
- Cherry-picks the fix that uses the latest stable Chrome for Testing in the Docker images. Pull request #43828
- Cherry-picks the roll of the driver Dockerfile to a recent Node.js LTS version. Pull request #43829
Why it matters
Users get two new environment settings for where transform caches and CLI sockets live, plus a lighter test watcher built on native fs.watch. Fixes this week cover selector generation on shadow DOM, aria labels on older engines, and skips in after hooks, and the Docker images get clearer source and version labels.
Changelog entry
- Added PLAYWRIGHT_TRANSFORM_CACHE_DIR to choose the transform cache directory. Pull request #43733
- CLI, dashboard and browser.bind sockets are kept in XDG_RUNTIME_DIR/playwright on Unix. Pull request #43732
- The test watcher now uses native fs.watch instead of chokidar. Pull request #43716
- Servers and their WebSockets are served under a random path prefix. Pull request #43694
- Selector generation no longer throws when the css fallback path is not unique. Pull request #43705
- Skips are disallowed in afterEach and afterAll hooks. Pull request #43713
- Aria-labelledby is parsed when element reflection is unavailable. Pull request #43722
- Docker images carry OCI source and version labels. Pull request #43801
- Docker images use the latest stable Chrome for Testing. Pull request #43828
- The driver Dockerfile uses a recent Node.js LTS version. Pull request #43829
- Docs explain how to type generic custom matchers. Pull request #43808
- The Codespaces devcontainer example uses the version placeholder. Pull request #43731
This week: PLAYWRIGHT_TRANSFORM_CACHE_DIR is now documented for private transform caches, CLI and browser.bind sockets stay in XDG_RUNTIME_DIR, and the test watcher uses native fs.watch instead of chokidar. Fixes for selector generation and aria-labelledby fallback.
This week in Playwright: the test runner's transform cache can be pointed at a private directory through the documented PLAYWRIGHT_TRANSFORM_CACHE_DIR variable, and on Unix the CLI session, dashboard and browser.bind sockets now live in XDG_RUNTIME_DIR/playwright with a temporary directory fallback. The test watcher switches from chokidar to native fs.watch, watching each test directory recursively on macOS and Windows and per directory on Linux. Fixes cover selector generation when a css fallback path is not unique, skips in after hooks, and aria-labelledby parsing where element reflection is unavailable.
Week of October 19, 2026
What shipped
- Fill now focuses the contenteditable host when filling a descendant, so inserted text lands in the right frame instead of resolving without changing anything. Pull request #43487
- Dedicated workers in Chromium now get the page locale, including navigator.languages and the Accept-Language header. Pull request #43488
- Route patterns are updated before awaiting interceptor removal, so an expired route no longer clears newer patterns. Pull request #43551
- Chromium no longer leaves requests paused when interception is re-enabled while a service worker holds the request. Pull request #43627
- TCP port randomization is disabled on Windows in Chromium, avoiding intermittent ERR_NO_BUFFER_SPACE failures. Pull request #43605
- Remaining startup requests to Google services are stopped by skipping ListAccounts without Gaia cookies and disabling preconnect to search. Pull request #43571
- Ffmpeg console windows are hidden on Windows during video recording without affecting browser launches. Pull request #43575
- HAR recording with content embed now stores non UTF-8 bodies as base64 instead of decoding them lossily. Pull request #43524
- The CLI console and requests commands gained an all option, and network requests from earlier navigations are kept up to 200. Pull request #43526
- HAR files with uppercase.ZIP extensions are now recognized when recording, exporting and replaying. Pull request #43550
Why it matters
This week's changes fix several failures users hit in real test runs: hangs and buffer errors in Chromium, silent fill misses inside contenteditable, and lossy or unrecognized HAR files. Work on ARIA label references, Electron WebGL fallback and worker locale also improves accuracy across the browsers people test against.
Changelog entry
- Fill focuses the editing host when filling a contenteditable descendant. Pull request #43487
- Chromium applies the page locale to dedicated workers. Pull request #43488
- Route patterns update before awaiting interceptor removal. Pull request #43551
- Chromium continues requests reported while interception was disabled. Pull request #43627
- Chromium disables TCP port randomization on Windows. Pull request #43605
- Chromium stops remaining startup requests to Google services. Pull request #43571
- Ffmpeg console windows are hidden on Windows for video recording. Pull request #43575
- HAR embeds non UTF-8 content as base64. Pull request #43524
- HAR recognizes.ZIP extensions regardless of case. Pull request #43550
- CLI console and requests accept an all option. Pull request #43526
- HTML report handles user attachments named stdout and stderr. Pull request #43576
- The driver no longer crashes on EPIPE after the client exits. Pull request #43499
This week: fill() now focuses the contenteditable host so text lands correctly, workers get the page locale in Chromium, HAR handles base64 for non UTF-8 bodies and uppercase.ZIP, and route patterns update before interceptor removal.
This week's changes for Playwright users include fill() focusing the editing host when filling a contenteditable descendant, so inserted text goes to the right frame. Chromium dedicated workers now receive the page locale for navigator.languages and Accept-Language. Route patterns update before interceptor removal, and Chromium no longer hangs requests paused while interception was re-enabled. HAR recording stores non UTF-8 bodies as base64 and recognizes.ZIP extensions regardless of case. ffmpeg console windows stay hidden during video recording on Windows.
Week of October 12, 2026
What shipped
- Added a secrets entry to the test runner trace option so sensitive values are redacted when trace chunks are merged into trace.zip. Pull request #43423
- Added a built-in exclusive lock to the test runner, so a test with lock set to exclusive runs only when no other tests are running. Pull request #43445
- Added timeout to CDPSession.send in all languages and signal in JS, with timeout defaulting to 0 meaning no timeout. Pull request #43404
- Relanded the change that stops proxy credentials being sent to website auth challenges, with WebKit now answering only proxy challenges via the new proxyCredentials field. Pull request #43482
- Fixed storageState with indexedDB enabled to keep falsy values and keys such as 0, false, empty string and null instead of restoring them as undefined. Pull request #43429
- Fixed evaluateHandle and waitForFunction to await page-overridden thenables such as zone.js-style Promise wrappers. Pull request #43436
- Fixed aria snapshots to quote ~,.inf and.nan so toMatchAriaSnapshot can match those values back. Pull request #43469
- Fixed the multipart encoder to escape quotes, CR and LF in field and file names in Content-Disposition headers. Pull request #43430
- Fixed UI mode to ignore trace loads that finish after the test item changed, which could replace the final trace model with an empty one. Pull request #43405
- Fixed fill so date, time, color and range inputs are no longer rejected when the browser serializes a valid value in canonical form. Pull request #43400
Why it matters
This week brought new test runner and CDP capabilities, including an exclusive lock, trace secret redaction and timeout and signal options on CDPSession.send. Several fixes improve correctness for people who rely on storage state, aria snapshots, evaluate and fill with date and time inputs. Documentation and release notes also grew across Python, Java and.NET.
Changelog entry
- Test runner: added a secrets option to the trace setting to redact sensitive values. Pull request #43423
- Test runner: added a built-in exclusive lock for tests. Pull request #43445
- CDPSession.send: added timeout in all languages and signal in JS. Pull request #43404
- Proxy credentials are no longer sent to website auth challenges. Pull request #43482
- StorageState with indexedDB keeps falsy values and keys. Pull request #43429
- EvaluateHandle and waitForFunction await page-overridden promises. Pull request #43436
- Aria snapshots quote ~,.inf and.nan. Pull request #43469
- Multipart encoding escapes quotes and newlines in field and file names. Pull request #43430
- Fake Intl.DateTimeFormat formats an explicit timestamp of 0 as the epoch. Pull request #43431
- Fill no longer rejects canonical date, time, color and range values. Pull request #43400
- UI mode ignores trace loads that finish after the test item changed. Pull request #43405
- Added v1.64 release notes for Java and.NET. Pull request #43377
This week in Playwright: exclusive test lock, trace secrets redaction, timeout and signal on CDPSession.send, plus fixes for IndexedDB storage state, aria snapshot quoting and fill on date and time inputs.
This week in Playwright: the test runner gained a built-in exclusive lock and a secrets option that redacts sensitive values when building trace.zip. CDPSession.send now accepts a timeout in all languages and a signal in JS. Fixes landed for flag falsy IndexedDB values in storageState, quote ~ and.inf and.nan in aria snapshots, await page-overridden promises in evaluateHandle, escape multipart field names, and stop fill from rejecting canonical date and time values. Proxy credentials are no longer sent to website auth challenges.
Week of October 5, 2026
What shipped
- Released v1.64.0, adding page.webmcp and frame.webmcp access to tools a page registers through the WebMCP browser API. Release
- Test.skip, test.fixme, test.fail and test.slow now accept a description string that is recorded as the annotation description. Pull request #43198
- Reporters gained an onlyFailures option and the run gained a --reporter-only-failures flag so passing tests no longer add output. Pull request #42766
- Elements with the inert attribute, their descendants, and content outside the topmost modal dialog are now treated as hidden for aria, getByRole, aria snapshots and accessible names. Pull request #43211
- Trace context options no longer store httpCredentials, extraHTTPHeaders, proxy credentials or storageState cookies, keeping only baseURL, viewport, deviceScaleFactor, isMobile and userAgent. Pull request #43220
- Proxy credentials now work in BiDi Chromium by answering the proxy challenge instead of adding a rejected Proxy-Authorization header. Pull request #43232
- The CLI daemon no longer force-kills the browser on close, so a single close no longer re-enters graceful shutdown. Pull request #43229
- Worker.evaluate calls now reject when the worker closes or the page crashes instead of hanging. Pull request #43223
- Sharded runs now fail when no tests match across all shards while an empty individual shard still passes. Pull request #43173
- Nameless cookies are now sent and parsed per RFC 6265bis, with Cookie: x and Set-Cookie: token handled as name empty and value token. Pull request #43168
Why it matters
This week brings a release with WebMCP access, more descriptive skip and fail annotations, quieter reporter output and safer trace storage. It also fixes a long list of correctness issues in locators, fetching, workers, sharding and browser backends such as Firefox, Electron and BiDi Chromium.
Changelog entry
- V1.64.0 released with page.webmcp and frame.webmcp WebMCP access. Release
- Test.skip, test.fixme, test.fail and test.slow now record their string argument as an annotation description. Pull request #43198
- Added onlyFailures for individual reporters and --reporter-only-failures for the whole run. Pull request #42766
- Inert elements, their descendants and content outside the topmost modal dialog are now hidden for aria, getByRole, aria snapshots and accessible names. Pull request #43211
- Trace context options no longer store httpCredentials, extraHTTPHeaders, proxy credentials or storageState cookies. Pull request #43220
- Proxy authentication now works in BiDi Chromium. Pull request #43232
- Worker evaluate calls now reject when the worker closes or the page crashes. Pull request #43223
- The CLI daemon no longer force-kills the browser on close. Pull request #43229
- Sharded runs now fail when no tests match across all shards. Pull request #43173
- Nameless cookies are now serialized and parsed per RFC 6265bis. Pull request #43168
- String and URLSearchParams fetch params are now appended to the existing URL query. Pull request #43226
- A clock log replayed in parts now keeps its paused state. Pull request #43224
V1.64.0 is out with WebMCP support on page and frame. Also this week: test.skip descriptions, --reporter-only-failures, inert-aware aria, safer trace options, and fixes for locators, fetch, workers and sharding.
V1.64.0 shipped this week with page.webmcp and frame.webmcp for testing tools a page registers through the experimental WebMCP browser API. Outside the release: test.skip, test.fixme, test.fail and test.slow now take a description that is recorded as an annotation; reporters gained onlyFailures and the run gained --reporter-only-failures; inert elements and content outside the topmost modal dialog are now hidden for aria; trace context options no longer store credentials, extra headers or storage state cookies; and fixes landed for BiDi Chromium proxies, worker evaluate rejection, the CLI daemon close path, sharded runs with no matching tests, and nameless cookie handling.
Week of September 28, 2026
What shipped
- APIRequestContext gains cookies() and clearCookies() methods to match BrowserContext, with standalone request contexts managing their own cookie jar. Pull request #43052
- APIRequestContext adds addCookies() method to set cookies, delegating to browser context for page.request or managing standalone request context cookies. Pull request #43032
- Locators gain page.getByRef(ref) to locate elements by their aria ref from page.ariaSnapshot({ mode: 'ai' }). Pull request #43055
- WebAuthn virtual credentials now support signCount option, persisted in storageState and restored for credential reuse workflows. Pull request #43041
- Video recording upgraded to ffmpeg r1013 and now encodes with VP9 codec instead of VP8 in WebM format. Pull request #43021
- MCP
browser_tabsaction accepts optional isolatedContext parameter to create tabs that share cookies and storage within named contexts. Pull request #43087 - Action retry backoff moved to server-side waiting instead of in-page setTimeout, fixing timeouts when javaScriptEnabled is false. Pull request #43012
- MCP and npx playwright open/codegen now extract proxy server credentials into explicit proxy.username and proxy.password instead of dropping them. Pull request #43071
- Browser_find MCP tool and CLI find command gain maxResults option to limit result output. Pull request #42947
- Performance improved by reusing a single DOM Range per document instead of creating new ranges for every text node visibility check. Pull request #43076
Why it matters
This week adds cookie management to standalone API requests, WebAuthn persistence improvements, video codec upgrades, and significant performance optimizations for pages with many display:contents elements. Several fixes address edge cases in proxy handling, action retries with disabled JavaScript, and MCP tool functionality.
Changelog entry
- Api: Add APIRequestContext.cookies() and clearCookies() to manage cookies in standalone request contexts and delegated page.request/context.request Pull request #43052
- Api: Add APIRequestContext.addCookies() to set cookies in standalone request contexts and delegated page.request/context.request Pull request #43032
- Locator: Add page.getByRef(ref) to locate elements by aria ref from page.ariaSnapshot({ mode: 'ai' }) Pull request #43055
- Webauthn: Add signCount option to credentials.create() and return current signature counter from create()/get() Pull request #43041
- Video: Upgrade ffmpeg to r1013 and encode videos with VP9 codec instead of VP8 Pull request #43021
- Mcp: Allow creating tabs in isolated browser contexts with shared cookies and storage via isolatedContext parameter Pull request #43087
- Fix: Move action retry backoff to server-side waiting instead of in-page setTimeout Pull request #43012
- Fix: Extract proxy server credentials into explicit proxy.username/proxy.password in MCP and npx playwright open/codegen Pull request #43071
- Mcp: Add maxResults option to
browser_findMCP tool and --max-results flag to CLI find command Pull request #42947 - Perf: Reuse single DOM Range per document instead of creating new ranges for every text node visibility check Pull request #43076
- Fix: Close pages that crashed before connecting over CDP in _onTargetCrashed instead of being special-cased in Page._markInitialized Pull request #43075
- Fix: Do not hang on pages without a renderer when connecting over CDP by sending Inspector.enable for attached pages Pull request #42936
Playwright shipped: APIRequestContext cookies support, page.getByRef locators, WebAuthn signCount tracking, VP9 video encoding, MCP isolated contexts, and server-side action retry backoff.
This week's Playwright updates include APIRequestContext.cookies()/addCookies()/clearCookies() mirroring BrowserContext functionality, page.getByRef() for aria-ref locators, WebAuthn signCount persistence across sessions, upgraded video encoding to VP9, MCP browser_tabs with isolated contexts, and fixed action retries when JavaScript is disabled. Performance gains from optimized DOM Range reuse and improved proxy credential handling.
Week of September 21, 2026
What shipped
- Locators now support within() to resolve relative locators like nth() inside parent elements, enabling patterns like page.getByRole('cell').nth.within(page.getByRole('row')). Pull request #42887
- Test runner gained --shuffle flag to randomize test execution order while preserving serial suites and dependency ordering. Pull request #42877
- Locator parser rewritten with per-language recursive descent parsers for JavaScript, Python, Java, and C# instead of regex-based parsing. Pull request #42895
- List reporter added printWorkerIndex option to prefix output with the worker index that produced each line. Pull request #42886
- Test sharding no longer counts statically skipped tests toward shard sizes, preventing starvation of shards with many skipped tests. Pull request #42916
- Tracing now races DOM snapshots against progress to prevent unresponsive pages from blocking before/after hooks. Pull request #42919
- Fixed Chromium keyup events on numpad keys to report the correct location code matching keydown events. Pull request #42913
- Fixed URLPattern routing to always match case-insensitively, preventing requests from being dropped on case mismatches. Pull request #42920
- Increased max screencast frames in flight from 3 to 5 (10 at >30fps) to reduce frame drops under heavy load. Pull request #42929
- CLI documentation now includes --debug modes and --run-agents option descriptions. Pull request #42890
Why it matters
This week includes significant improvements to test authoring with new locator syntax and test ordering, plus parser refactoring that improves reliability across languages. Multiple fixes address edge cases in tracing, routing, and screencast recording that affect test stability.
Changelog entry
- Feat(locator): add locator.within() to resolve relative locators inside parent elements Pull request #42887
- Feat(test-runner): add --shuffle to run tests in random order Pull request #42877
- Chore(locators): rewrite locator parser with per-language recursive descent parsers Pull request #42895
- Feat(list reporter): add printWorkerIndex option to prefix output with worker index Pull request #42886
- Fix(test runner): do not count statically skipped tests when sharding Pull request #42916
- Fix(tracing): do not hang on unresponsive page when capturing snapshots Pull request #42919
- Fix(route): do not drop requests matching case-insensitive URLPattern Pull request #42920
- Fix(chromium): report numpad location on keyup Pull request #42913
- Fix(chromium): allow more screencast frames in flight Pull request #42929
- Fix(mcp): report a dialog opened during navigation instead of timing out Pull request #42908
New in Playwright: locator.within() for relative selectors, test --shuffle flag, rewritten locator parser with per-language support, and fixes for tracing hangs, URLPattern routing, and screencast frames.
This week's Playwright updates focus on test authoring and reliability. Locators now support within() for elegant relative selector patterns. The test runner gained --shuffle for randomized test order. A major parser rewrite replaces regex with per-language recursive descent parsers for JavaScript, Python, Java, and C#. Multiple fixes address test stability: preventing tracing from hanging on unresponsive pages, fixing URLPattern routing, reducing screencast frame drops, and improving test sharding. Plus new list reporter worker index output.