Skip to content

v1.22.0

Compare
Choose a tag to compare
@rwoll rwoll released this 13 May 16:28
97c6490

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 locator

    buttons = page.locator("role=button")
    # ...
    submit_button = buttons.filter(has_text="Submit")
    submit_button.click()
  • Codegen now supports generating Pytest Tests

    Graphics

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