github microsoft/playwright-python v1.34.0

latest releases: v1.43.0, v1.42.0, v1.41.2...
11 months ago

Highlights

  • New Locator.and_ to create a locator that matches both locators.

    button = page.get_by_role("button").and_(page.get_by_title("Subscribe"))
  • Its now possible to set a global expect timeout and change the 5 second default:

    from playwright.sync_api import expect
    
    expect.set_options(timeout=10_000)
  • New events BrowserContext.on("console") and BrowserContext.on("dialog") to subscribe to any dialogs
    and console messages from any page from the given browser context. Use the new properties ConsoleMessage.page
    and Dialog.page to pin-point event source.

Browser Versions

  • Chromium 114.0.5735.26
  • Mozilla Firefox 113.0
  • WebKit 16.4

This version was also tested against the following stable channels:

  • Google Chrome 113
  • Microsoft Edge 113

Don't miss a new playwright-python release

NewReleases is sending notifications on new releases.