Skip to content

v1.65.0

Latest

Choose a tag to compare

@yury-s yury-s released this 12 Nov 00:41
867cc93

🧾 Locator code in Java

A locator from locator.normalize() now converts to a string as Java code. Use it with page.getByRef() to turn an element that an agent picks from a page.ariaSnapshot() in the "ai" mode into code for your test:

Locator normalized = page.getByRef("e2").normalize();
System.out.println(normalized.toString());
// getByRole(AriaRole.BUTTON, new Page.GetByRoleOptions().setName("Submit"))

New APIs

Breaking Changes ⚠️

Browser Versions

  • Chromium 158.0.8127.18
  • Mozilla Firefox 159.0
  • WebKit 27.2

This version was also tested against the following stable channels:

  • Google Chrome 157
  • Microsoft Edge 156