Highlights
-
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']")
Read more in our documentation.
-
New [
method: Locator.filter
] API to filter an existing locatorbuttons = page.locator("role=button") # ... submit_button = buttons.filter(has_text="Submit") submit_button.click()
-
Codegen now supports generating Pytest Tests
Browser Versions
- Chromium 102.0.5005.40
- Mozilla Firefox 99.0.1
- WebKit 15.4
This version was also tested against the following stable channels:
- Google Chrome 101
- Microsoft Edge 101