github microsoft/playwright-python v0.150.0

latest releases: v1.43.0, v1.42.0, v1.41.2...
3 years ago

Highlights

  • Based on Playwright v1.5.0
  • Video screencasts API is now stable: Use the videosPath option while creating browser contexts to record videos for all pages within the context. See examples.
  • CLI is now baked into Playwright module. List available CLI options with python -m playwright --help
    • Record Playwright scripts in Python using python -m playwright codegen
    • Record async scripts using python -m playwright codegen --target=python-async
    • Open pages and capture screenshots
    • Generate PDFs
    • Learn more on the playwright-cli page

Breaking changes

  • Chromium sandboxing is now opt-in. This is to simplify running Playwright tests in CI environments. Learn how to enable sandboxing.

Browser Versions

  • Chromium 88.0.4287.0
  • Mozilla Firefox 82.0b9
  • WebKit 14.0

New APIs

  • browser.newPage(), browser.newContext() and browserType.launchPersistentContext() now support videosPath and videoSize option.
  • New browserContext.browser() method.
  • Both browserContext.exposeBinding() and page.exposeBinding() now accept handle parameter to pass handles instead of serialized values.

Don't miss a new playwright-python release

NewReleases is sending notifications on new releases.