v1.21.0
Highlights
-
New experimental role selectors that allow selecting elements by their ARIA role, ARIA attributes and accessible name.
// Click a button with accessible name "log in" page.click("role=button[name='log in']")
To use role selectors, make sure to pass
PLAYWRIGHT_EXPERIMENTAL_FEATURES=1
environment variable.Read more in our documentation.
-
New
scale
option inPage.screenshot
for smaller sized screenshots. -
New
caret
option inPage.screenshot
to control text caret. Defaults toHIDE
.
Behavior Changes
- Playwright now supports large file uploads (100s of MBs) via
Locator.setInputFiles
API.
Browser Versions
- Chromium 101.0.4951.26
- Mozilla Firefox 98.0.2
- WebKit 15.4
This version was also tested against the following stable channels:
- Google Chrome 100
- Microsoft Edge 100