Highlights
Assertions
- New option
enabled
formethod: LocatorAssertions.to_be_enabled
. method: LocatorAssertions.to_have_text
now pierces open shadow roots.- New option
editable
formethod: LocatorAssertions.to_be_editable
. - New option
visible
formethod: LocatorAssertions.to_be_visible
.
Other highlights
- New option
max_redirects
formethod: APIRequestContext.get
and 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