v1.26.0
Highlights
Assertions
- New option
enabledformethod: LocatorAssertions.to_be_enabled. method: LocatorAssertions.to_have_textnow pierces open shadow roots.- New option
editableformethod: LocatorAssertions.to_be_editable. - New option
visibleformethod: LocatorAssertions.to_be_visible.
Other highlights
- New option
max_redirectsformethod: APIRequestContext.getand others to limit redirect count. - Python 3.11 is now supported.
Behavior Change
A bunch of Playwright APIs already support the wait_until: "domcontentloaded" option.
For example:
page.goto("https://playwright.dev", wait_until="domcontentloaded")Prior to 1.26, this would wait for all iframes to fire the DOMContentLoaded
event.
To align with web specification, the 'domcontentloaded' value only waits for
the target frame to fire the 'DOMContentLoaded' event. Use wait_until="load" to wait for all iframes.
Browser Versions
- Chromium 106.0.5249.30
- Mozilla Firefox 104.0
- WebKit 16.0
This version was also tested against the following stable channels:
- Google Chrome 105
- Microsoft Edge 105