Skip to content

v3.24.0

Choose a tag to compare

@xvrh xvrh released this 20 Jun 11:36
· 18 commits to master since this release
099ad6c
  • Add the Locator API (page.locator() / frame.locator()): auto-waits for the
    element and retries the whole action on failure. Includes map/filter/
    Locator.race, ElementHandle.asLocator() and page.locatorFunction().
  • Add Puppeteer-specific selectors anywhere a selector is accepted:
    ::-p-text(...), ::-p-xpath(...), deep combinators >>>/>>>> (pierce
    shadow DOM) and the text//xpath//pierce/ prefixes. (::-p-aria not yet.)
  • waitForFunction now awaits asynchronous (Promise-returning) predicates.
await page.locator('::-p-text(Sign in)').click();