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>
`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>
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>
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>
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>
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>
`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>
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>
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
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>
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.
## 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