8681 Commits
Author SHA1 Message Date
Yury Semikhatsky 049226728d chore(client): remove unused Frame._evaluateExposeUtilityScript (#44274) 2026-11-20 18:30:35 -08:00
microsoft-playwright-automation[bot] 36b06485cc fix(cli): exit run-server when stdin closes (#44258)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-20 15:27:30 -08:00
microsoft-playwright-automation[bot] eacf88727e fix(install): remove unused Chromium dependency checks (#44234)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-20 15:26:56 -08:00
microsoft-playwright-automation[bot] f5edf1887e fix(har): avoid hanging on open page dialogs (#44245)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-20 15:26:34 -08:00
Pavel Feldman 99d4c415db feat(chromium): attach to a running browser with a remote-debugging:// or extension:// URL (#44247) 2026-11-20 11:10:19 -08:00
Pavel Feldman a018f24a4f feat(cli): list browser profiles and attach to a profile with --profile-dir-name (#44243) 2026-11-19 17:19:22 -08:00
microsoft-playwright-automation[bot] 1664ab2899 feat(chromium): roll to 159.0.8154.13 (#44238)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 20:51:18 +00:00
microsoft-playwright-automation[bot] 13f054782a feat(test): add deferred retry strategy (#44235)
Add `retryStrategy: 'deferred'` to queue retries after unrun tests and allow them to run on available workers. Keep exclusive retry execution for `isolated` and preserve existing test locks.

Update the configuration docs and generated types. Extend ordering coverage and add a synchronized check for retries overlapping with first attempts and other retries.

Fixes https://github.com/microsoft/playwright/issues/44226

<sub>Triaged on Linux by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44576418773)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 12:47:09 -07:00
microsoft-playwright-automation[bot] 09dab5d709 fix(locator): [breaking] await waitForFunction predicate promises (#44220)
`Locator.waitForFunction` checked a returned promise for truthiness instead of awaiting its value, so async predicates passed immediately and rejections were lost.

Await the element callback before checking its result. Extend the existing promise and error tests to cover false results, delayed resolution with polling, and rejection.

Fixes https://github.com/microsoft/playwright/issues/44217

<sub>Triaged on Linux by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44370243233)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 10:05:30 -07:00
microsoft-playwright-automation[bot] ff7cf8ebdb feat(aria): include required state in snapshots (#44210)
Add the missing `required` state to ARIA snapshot extraction, JSON/YAML output, parsing and matching, with documentation and coverage in the existing flags test.

Limit the state to WAI-ARIA 1.2 supported roles, including inherited roles. Native `required` takes precedence over `aria-required="false"`; false values stay omitted from output but can be asserted explicitly.

Fixes https://github.com/microsoft/playwright/issues/44204

<sub>Triaged on Linux by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44350239660)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 09:04:12 -07:00
microsoft-playwright-automation[bot] 38a4621a12 fix(screenshots): preserve baselines when capture is unstable (#44151)
Screenshot capture failures can include an intermediate image. Snapshot updates treated that image as a successful capture and overwrote the baseline.

Mark stable baseline mismatches in the internal screenshot result and update only from those results. Preserve stable-image updates, comparison tolerances, and existing capture errors. Extend the existing update test to check that an unstable capture leaves the stable baseline unchanged.

Fixes https://github.com/microsoft/playwright/issues/44128

<sub>Triaged on Windows by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/43960226570)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-19 09:03:31 -07:00
microsoft-playwright-automation[bot] e245c3f75b docs(input): document Caps Lock state limitation (#44209)
Document that pressing `CapsLock` sends keyboard events but does not make subsequent lowercase input uppercase. Point users to explicit uppercase input instead; keyboard behavior is unchanged.

Refs https://github.com/microsoft/playwright/issues/44200

<sub>Triaged on Linux by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44350212425)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 13:46:14 -07:00
microsoft-playwright-automation[bot] 6244a88979 fix(trace-viewer): keep action marker aligned while scrolling (#44154)
The red action marker was positioned only when the DOM snapshot loaded, so it stayed at the old viewport coordinates after scrolling. Recompute its position on document and shadow-root scroll events, including scrollable descendants.

The extended target-highlight test checks alignment before scrolling, after scrolling down, and after returning to the original position. It fails without the fix and passes with Chromium, Firefox and WebKit recordings.

Fixes https://github.com/microsoft/playwright/issues/44127

<sub>Triaged on macOS by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/43960219698)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 13:23:02 -07:00
microsoft-playwright-automation[bot] d6cd3abc4b fix(cli): refresh WebMCP tools before listing (#44216)
`webmcp-list` reads the tools cached by the last snapshot, so it misses tools registered later.

Refresh through `Tab.updateWebMCPTools()` before rendering the list. This keeps the cache current while preserving the WebMCP configuration gate and dialog handling. Extend the existing CLI test with a tool registered after `open`, without another snapshot.

Refs https://github.com/microsoft/playwright-cli/issues/544

<sub>Triaged on macOS by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/44354240106)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 13:22:35 -07:00
microsoft-playwright-automation[bot] 0116d08ff0 fix(mcp): fall back for filenames in unsuitable workspaces (#44155)
Explicit relative output filenames bypass the unsuitable-workspace fallback used for automatically named files. Use the same directory suitability check for both, while preserving absolute filenames and input-file resolution.

Check Windows directory writability by creating an exclusive temporary file: `fs.accessSync(W_OK)` does not check Windows ACLs.

Fixes https://github.com/microsoft/playwright/issues/44138

<sub>Triaged on Windows by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/43960297452)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 13:13:54 -07:00
microsoft-playwright-automation[bot] 084caef129 fix(mcp): coerce INI URL redaction parameters to an array (#44182)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 10:40:27 -08:00
microsoft-playwright-automation[bot] 8fff5ce314 fix(trace): extract empty inline attachments (#44183)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 10:39:43 -08:00
microsoft-playwright-automation[bot] bfc459c18e fix(route): preserve JSON fulfillment content types (#44149)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 10:31:55 -08:00
Yury Semikhatsky 51d5cd20bb chore(extension): bump version to 0.6.0 (#44218) 2026-11-18 10:23:28 -08:00
Devin Rousso 0ae0114cc2 fix(trace-viewer): rewrite blob URLs without changing the protocol in place (#44215)
setting `URL.protocol` no longer turns a `blob:` URL into an HTTPS URL in Chromium, so recorded images fail to load in trace snapshots

construct a new HTTPS URL for blob and custom schemes before adding the hostname prefix
2026-11-18 10:45:10 -07:00
microsoft-playwright-automation[bot] d456688ec2 fix(aria): snapshot standalone SVG documents (#44147)
ARIA snapshots wait for `body,frameset`, which never matches standalone SVG documents. Also accept `:root:not(html)` for page and child-frame snapshots, preserving HTML body waiting and frameset handling.

Extend the existing AR-096 test with a standalone SVG, checking JSON output and the AI snapshot against the document-root locator.

Fixes https://github.com/microsoft/playwright/issues/44124

<sub>Triaged on Linux by the Playwright bot - [agent run](https://github.com/microsoft/devops.playwright.dev/actions/runs/43960177188)</sub>

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-18 09:37:49 -07:00
Pavel Feldman dc99b6cbf8 fix(ui-mode): show the trace viewer in a frame from its own server (#44196) 2026-11-18 08:22:45 -08:00
Pavel Feldman c2651d4867 feat(connect): add launchOptions option to browserType.connect (#44106) 2026-11-17 16:26:41 -08:00
Pavel Feldman 9c013a2324 fix(trace-viewer): harden snapshot rendering (#44177) 2026-11-17 13:21:57 -08:00
Pavel Feldman 9efd7d3147 fix(server): sandbox trace file routes and check the WebSocket origin (#44178) 2026-11-17 13:21:35 -08:00
Pavel Feldman 384e47d881 fix(server): do not reveal the endpoint path over HTTP (#44190) 2026-11-17 13:20:43 -08:00
Faris Basha TM 1a8c66d5ab docs(android): use waitForURL in the WebView example (#44166)
The example presses Enter in the WebView URL field and only then calls page.waitForNavigation(), which is deprecated as inherently racy: if the navigation has already committed by the time the page is obtained, the call waits for a navigation that never comes and times out. page.waitForURL() resolves immediately when the URL already matches.
2026-11-17 12:19:29 -07:00
microsoft-playwright-automation[bot] 765383d755 feat(webkit): roll to r2395 (#44165)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
2026-11-17 11:41:21 -07:00
BhanuTeja Indla 75e1e71404 feat(html-reporter): add Blink mode for image mismatches (#44131)
Add a 500 ms toggle between actual and expected images in image mismatch views.
blink-mode-recording.webm

Fixes: https://github.com/microsoft/playwright/issues/44126
2026-11-17 11:32:47 -07:00
Aritro Saha 8b7523772b fix(coverage): handle empty branch locations in lcov generation (#44114)
## Summary
- Use optional chaining when accessing `location.start?.line` in `CoverageReporter.lcovReport` to prevent `TypeError` when Istanbul coverage data contains empty branch locations.
- Fallback safely to `branch.loc?.start?.line ?? branch.line ?? 0`.

Fixes https://github.com/microsoft/playwright/issues/44113
2026-11-17 09:55:20 -07:00