🖱️ Mouse Wheel
By using Page.mouse.wheel
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.all_headers()
- Request.headers_array()
- Request.header_value(name: str)
- Response.all_headers()
- Response.headers_array()
- Response.header_value(name: str)
- Response.header_values(name: str)
🌈 Forced-Colors emulation
Its now possible to emulate the forced-colors
CSS media feature by passing it in the context options or calling Page.emulate_media().
New APIs
- Page.route() accepts new
times
option to specify how many times this route should be matched. - Page.set_checked(selector: str, checked: bool) and Locator.set_checked(selector: str, checked: bool) was introduced to set the checked state of a checkbox.
- Request.sizes() Returns resource size information for given http request.
- BrowserContext.tracing.start_chunk() - Start a new trace chunk.
- BrowserContext.tracing.stop_chunk() - Stops a new trace chunk.
Browser Versions
- Chromium 96.0.4641.0
- Mozilla Firefox 92.0
- WebKit 15.0
This version of Playwright was also tested against the following stable channels:
- Google Chrome 93
- Microsoft Edge 93