Highlights
Assertions
- New option
Enabled
for Expect(Locator).ToBeEnabledAsync(options). - Expect(Locator).ToHaveTextAsync(expected, options) now pierces open shadow roots.
- New option
Editable
for Expect(Locator).ToBeEditableAsync(options). - New option
Visible
for Expect(Locator).ToBeVisibleAsync(options). - Expect(ApiResponse).ToBeOKAsync() is now available.
Other highlights
- New option
MaxRedirects
for ApiRequestContext.GetAsync(url, options) and others to limit redirect count. - Codegen now supports NUnit and MSTest frameworks.
- ASP .NET is now supported (via
packages.config
)
Behavior Change
A bunch of Playwright APIs already support the WaitUntil: WaitUntilState.DOMContentLoaded
option. For example:
await Page.GotoAsync("https://playwright.dev", new() { WaitUntil = WaitUntilState.DOMContentLoaded });
Prior to 1.26, this would wait for all iframes to fire the DOMContentLoaded
event.
To align with web specification, the WaitUntilState.DOMContentLoaded
value only waits for the target frame to fire the 'DOMContentLoaded'
event. Use WaitUntil: WaitUntilState.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