From 299b9e08a1f4ebdabfa57612506a5ede1d8b045a Mon Sep 17 00:00:00 2001 From: "microsoft-playwright-automation[bot]" <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 23:16:19 +0000 Subject: [PATCH] feat(roll): roll to 1.62 Playwright --- .../version-stable/release-notes.mdx | 28 +++++++++++++++++ .../version-stable/release-notes.mdx | 30 +++++++++++++++++++ .../version-stable/release-notes.mdx | 1 + .../version-stable/release-notes.mdx | 28 +++++++++++++++++ 4 files changed, 87 insertions(+) diff --git a/dotnet/versioned_docs/version-stable/release-notes.mdx b/dotnet/versioned_docs/version-stable/release-notes.mdx index f510706f5b..6c0b50157f 100644 --- a/dotnet/versioned_docs/version-stable/release-notes.mdx +++ b/dotnet/versioned_docs/version-stable/release-notes.mdx @@ -9,6 +9,34 @@ import HTMLCard from '@site/src/components/HTMLCard'; import LiteYouTube from '@site/src/components/LiteYouTube'; +## Version 1.62 + +### 🖼️ WebP screenshots + +[Page.ScreenshotAsync()](/api/class-page.mdx#page-screenshot) and [Locator.ScreenshotAsync()](/api/class-locator.mdx#locator-screenshot) can now capture screenshots in the WebP format — Playwright infers the format from a `.webp` file extension, or you can set the `type` explicitly. Quality `100` (the default) is lossless, while lower values use lossy compression: + +```csharp +await page.ScreenshotAsync(new() { Path = "homepage.webp", Quality = 50 }); +``` + +### New APIs +- New `scroll` option (`"auto"` | `"none"`) on actions to opt out of Playwright's automatic scroll-into-view. +- New [Locator.WaitForFunctionAsync()](/api/class-locator.mdx#locator-wait-for-function) waits until a function — called with the matching element — returns a truthy value. +- New [ApiResponse.Timing](/api/class-apiresponse.mdx#api-response-timing) returns resource timing information for an API response. + +### Announcements +* 📋 The clipboard is now isolated from the operating system in headless mode, so tests that use `navigator.clipboard` no longer read or overwrite the clipboard of the machine running them. +* ⚠️ Debian 11 is not supported anymore. + +### Browser Versions +- Chromium 151.0.7922.34 +- Mozilla Firefox 153.0 +- WebKit 26.5 + +This version was also tested against the following stable channels: +- Google Chrome 151 +- Microsoft Edge 151 + ## Version 1.61 ### 🔑 WebAuthn passkeys diff --git a/java/versioned_docs/version-stable/release-notes.mdx b/java/versioned_docs/version-stable/release-notes.mdx index e5339534eb..71a83af946 100644 --- a/java/versioned_docs/version-stable/release-notes.mdx +++ b/java/versioned_docs/version-stable/release-notes.mdx @@ -9,6 +9,36 @@ import HTMLCard from '@site/src/components/HTMLCard'; import LiteYouTube from '@site/src/components/LiteYouTube'; +## Version 1.62 + +### 🖼️ WebP screenshots + +[Page.screenshot()](/api/class-page.mdx#page-screenshot) and [Locator.screenshot()](/api/class-locator.mdx#locator-screenshot) can now capture screenshots in the WebP format — Playwright infers the format from a `.webp` file extension, or you can set the `type` explicitly. Quality `100` (the default) is lossless, while lower values use lossy compression: + +```java +page.screenshot(new Page.ScreenshotOptions() + .setPath(Paths.get("homepage.webp")) + .setQuality(50)); +``` + +### New APIs +- New `scroll` option (`"auto"` | `"none"`) on actions to opt out of Playwright's automatic scroll-into-view. +- New [Locator.waitForFunction()](/api/class-locator.mdx#locator-wait-for-function) waits until a function — called with the matching element — returns a truthy value. +- New [APIResponse.timing()](/api/class-apiresponse.mdx#api-response-timing) returns resource timing information for an API response. + +### Announcements +* 📋 The clipboard is now isolated from the operating system in headless mode, so tests that use `navigator.clipboard` no longer read or overwrite the clipboard of the machine running them. +* ⚠️ Debian 11 is not supported anymore. + +### Browser Versions +- Chromium 151.0.7922.34 +- Mozilla Firefox 153.0 +- WebKit 26.5 + +This version was also tested against the following stable channels: +- Google Chrome 151 +- Microsoft Edge 151 + ## Version 1.61 ### 🔑 WebAuthn passkeys diff --git a/nodejs/versioned_docs/version-stable/release-notes.mdx b/nodejs/versioned_docs/version-stable/release-notes.mdx index b4cd2473ed..a2922b2d22 100644 --- a/nodejs/versioned_docs/version-stable/release-notes.mdx +++ b/nodejs/versioned_docs/version-stable/release-notes.mdx @@ -110,6 +110,7 @@ export default defineConfig({ ``` ### Announcements +* 📋 The clipboard is now isolated from the operating system in headless mode, so tests that use `navigator.clipboard` no longer read or overwrite the clipboard of the machine running them. * ⚠️ Debian 11 is not supported anymore. ### Browser Versions diff --git a/python/versioned_docs/version-stable/release-notes.mdx b/python/versioned_docs/version-stable/release-notes.mdx index 5730850772..fccb3ce8d3 100644 --- a/python/versioned_docs/version-stable/release-notes.mdx +++ b/python/versioned_docs/version-stable/release-notes.mdx @@ -9,6 +9,34 @@ import HTMLCard from '@site/src/components/HTMLCard'; import LiteYouTube from '@site/src/components/LiteYouTube'; +## Version 1.62 + +### 🖼️ WebP screenshots + +[page.screenshot()](/api/class-page.mdx#page-screenshot) and [locator.screenshot()](/api/class-locator.mdx#locator-screenshot) can now capture screenshots in the WebP format — Playwright infers the format from a `.webp` file extension, or you can set the `type` explicitly. Quality `100` (the default) is lossless, while lower values use lossy compression: + +```python +page.screenshot(path="homepage.webp", quality=50) +``` + +### New APIs +- New `scroll` option (`"auto"` | `"none"`) on actions to opt out of Playwright's automatic scroll-into-view. +- New [locator.wait_for_function()](/api/class-locator.mdx#locator-wait-for-function) waits until a function — called with the matching element — returns a truthy value. +- New [api_response.timing](/api/class-apiresponse.mdx#api-response-timing) returns resource timing information for an API response. + +### Announcements +* 📋 The clipboard is now isolated from the operating system in headless mode, so tests that use `navigator.clipboard` no longer read or overwrite the clipboard of the machine running them. +* ⚠️ Debian 11 is not supported anymore. + +### Browser Versions +- Chromium 151.0.7922.34 +- Mozilla Firefox 153.0 +- WebKit 26.5 + +This version was also tested against the following stable channels: +- Google Chrome 151 +- Microsoft Edge 151 + ## Version 1.61 ### 🔑 WebAuthn passkeys