🖼️ WebP screenshots
page.screenshot() and 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:
page.screenshot(path="homepage.webp", quality=50)New APIs
- New
scrolloption ("auto"|"none") on actions to opt out of Playwright's automatic scrolling into view. - New locator.wait_for_function() waits until a function called with the matching element returns a truthy value.
- New apiResponse.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.clipboardno 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