pypi playwright 1.65.0
v1.65.0

26 minutes ago

๐Ÿงพ Locator code in Python

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

normalized = page.get_by_ref("e2").normalize()
print(str(normalized))
# get_by_role("button", name="Submit")

New APIs

Notable Fixes โš ๏ธ

Announcements

  • ๐Ÿ The Python client is now a line-by-line port of the Node.js client, so it behaves the same way. The API did not change. If you see a change in behavior, file an issue.
  • ๐Ÿ“ฆ Playwright now publishes a source distribution next to the wheels. It does not include Node.js, so installs that do not accept wheels now work, such as pip install --no-binary :all: and Poetry with installer.no-binary. An install from the source distribution uses a pre-installed Node.js that you set with PLAYWRIGHT_NODEJS_PATH.
  • ๐Ÿงฉ pyee is not a dependency anymore, so it no longer conflicts with packages that need a different version of it.

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

Don't miss a new playwright release

NewReleases is sending notifications on new releases.