v1.61.0
📦 playwrightView on GitHub →
✨ 14 features🔧 13 symbols
Summary
This release introduces major features for WebAuthn passkey simulation via Credentials and Web Storage APIs for local/session storage manipulation. It also adds several new APIs for network inspection, browser connection, and test runner configuration enhancements.
✨ New Features
- Introduced Credentials virtual authenticator via browserContext.credentials to simulate WebAuthn passkeys, allowing registration and answering credential ceremonies without hardware.
- New WebStorage API via page.localStorage and page.sessionStorage to read and write page storage for the current origin.
- Added apiResponse.securityDetails() and apiResponse.serverAddr() mirroring browser response methods.
- New option `artifactsDir` in browserType.connectOverCDP() to control artifact storage location when attached to an existing browser.
- New option `cursor` in screencast.showActions() to control the cursor decoration for pointer actions.
- The `onFrame` callback in screencast.start() now receives a `timestamp` of when the frame was presented.
- The testOptions.video option now supports new modes: 'on-all-retries', 'retain-on-first-failure', and 'retain-on-failure-and-retries'.
- Supported expect.soft.poll(...).
- New fullConfig.argv providing a snapshot of process.argv from the runner process.
- New fullConfig.failOnFlakyTests mirroring the config option for reporters.
- testInfo.errors now lists each sub-error of an AggregateError as a separate entry.
- Added -G command line shorthand for --grep-invert.
- Playwright now supports Ubuntu 26.04.
- HAR and trace recordings now include WebSocket requests.