🖱️ Mouse Wheel
By using Page.Mouse.WheelAsync
you are now able to scroll vertically or horizontally.
📜 New Headers API
Previously it was not possible to get multiple header values of a response. This is now possible and additional helper functions are available:
- Request.AllHeadersAsync()
- Request.HeadersArrayAsync()
- Request.HeaderValueAsync(name: string)
- Response.AllHeadersAsync()
- Response.HeadersArrayAsync()
- Response.HeaderValueAsync(name: string)
- Response.HeaderValuesAsync(name: string)
🌈 Forced-Colors emulation
Its now possible to emulate the forced-colors
CSS media feature by passing it in the context options or calling Page.EmulateMediaAsync().
New APIs
- Page.RouteAsync() accepts new
times
option to specify how many times this route should be matched. - Page.SetCheckedAsync(selector: string, checked: Boolean) and Locator.SetCheckedAsync(selector: string, checked: Boolean) was introduced to set the checked state of a checkbox.
- Request.SizesAsync() Returns resource size information for given http request.
- Tracing.StartChunkAsync() - Start a new trace chunk.
- Tracing.StopChunkAsync() - Stops a new trace chunk.
Browser Versions
- Chromium 96.0.4641.0
- Mozilla Firefox 92.0
- WebKit 15.0
Important ⚠
- ⬆ .NET Core Apps 2.1 are no longer supported for our CLI tooling. As of August 31st, 2021, .NET Core 2.1 is no longer supported and will not receive any security updates. We've decided to move the CLI forward and require .NET Core 3.1 as a minimum.
This version of Playwright was also tested against the following stable channels:
- Google Chrome 93
- Microsoft Edge 93
Important ⚠
- ⬆ .NET Core Apps 2.1 are no longer supported for our CLI tooling. As of August 31st, 2021, .NET Core 2.1 is no longer supported and will not receive any security updates. We've decided to move the CLI forward and require .NET Core 3.1 as a minimum.