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
- Record Playwright scripts in Python using
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()
andbrowserType.launchPersistentContext()
now supportvideosPath
andvideoSize
option.- New
browserContext.browser()
method. - Both
browserContext.exposeBinding()
andpage.exposeBinding()
now accepthandle
parameter to pass handles instead of serialized values.