Skip to content

Releases: microsoft/playwright-python

v0.162.1

18 Nov 22:25
Compare
Choose a tag to compare

Highlights

Touch

  • Use page.tap() to automate native tap events. Like other input events, taps auto-wait for the UI element and actionability checks.

Network

  • WebSocket inspection: Use page.on('websocket') and the new WebSocket class to inspect WebSocket connections.
  • HAR export: Capture and export all the network activity as a HAR file. Pass recordHar while creating new browser contexts.
  • Resource timing: Use request.timing() to retrieve and analyze timing data for the network requests.
  • Proxy for browser context: Network proxy settings can now be configured per browser contexts with the proxy option on the new context.

Playwright CLI

  • CLI codegen can now generate C# code. Run npx playwright-cli codegen --target=csharp to try!

Browser Versions

  • Chromium 88.0.4316.0
  • Mozilla Firefox 83.0b8
  • WebKit 14.0

New APIs

Issues Closed (39)

#1655 - [Feature] Custom methods on Page
#2515 - [Feature] networkidle for "idle after action"
#2695 - [Feature] WebSockets supports
#2946 - Not able to detect browser event: disconnected event when close browser is invoked
#2974 - [BUG] Unable to adopt element handle from a different document
#3122 - [QUESTION] Chromium versions are mismatched in docker, leading to launch failures
#3206 - [Feature] Export network as HAR
#3466 - [Feature] Fill input field based on label text
#3476 - [BUG] Firefox focus won't work with more than 1 page
#3499 - [BUG] Playwright does not see iframe element as visible
#3534 - [Feature] Allow set proxy per context
#3693 - [BUG] RPC/Firefox goBack does not return a response (guid)
#3830 - [Feature] Text selector engine normalise whitespaces
#4002 - [BUG] page.waitForSelector fails when called during a redirect
#4021 - [BUG] beforeunload event in headless mode is failing
#4038 - [REGRESSION]: Tall screenshots in chromium get corrupted at bottom
#4134 - [BUG] elementHandle.scrollIntoViewIfNeeded doesn't work properly
#4179 - [BUG] Unable to close page when confirm dialog is open
#4208 - [BUG] Timout Error on firefox for popup
#4232 - [BUG] Group videoPath and videoSize under recordVideo option
#4233 - [BUG] download file not occurs
#4255 - [Question]: Exposing common Playwright types
#4256 - [Question] playwright-electron types might be missing from the release or is there any guide on how to get it to work?
#4265 - [Feature] Multiple text selectors
#4266 - [Question] Exported video quality
#4268 - [Question] Does puppeteer have Redhat Dockerfile support?
#4277 - [BUG] Firefox workers cause frame navigation
#4279 - How to Compare two screenshots? Need code [Question]
#4282 - [Question] is there a way to get element background colour ?
#4284 - [BUG] page.addInitScript doesn't work for large scripts
#4285 - Running WebKit on AWS EC2 Instance [Question]
#4286 - [Question] CDP sessions with other targets
#4293 - [BUG] Bundle dlls with Firefox for Windows
#4302 - [Question] What is the best way to scroll page to the bottom?
#4317 - [Question] drag and drop
#4318 - [Question] Query by text with space
#4319 - [Question] Have the browsers that are downloaded for playwright 1.3.0 changed somehow ?
#4321 - [Feature] pass arguments like proxy to each context not to whole browser
#4326 - [Test] Ubuntu: browsercontext-proxy.spec.ts:128:1 › should exclude patterns crashes webkit

v0.162.0

17 Nov 21:48
Compare
Choose a tag to compare

Rolled to Playwright 1.6.2

v0.152.0

30 Oct 00:55
b5f8151
Compare
Choose a tag to compare

Rolled to Playwright 1.5.2

v0.151.1

22 Oct 17:14
088c42e
Compare
Choose a tag to compare

Bugfixes:

  • fix: AttributeError with mocked stderr (fix #246) (#247)

All changes:

  • tests: mark test as flaky (#248)
  • fix: AttributeError with mocked stderr (fix #246) (#247)
  • devops: Run CI jobs also on Python 3.9 (#226)

v0.151.0

15 Oct 02:00
2794a3b
Compare
Choose a tag to compare

Rolled to Playwright 1.5.1

v0.150.0

13 Oct 21:55
Compare
Choose a tag to compare

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.

v0.142.3

03 Oct 19:49
d98d38b
Compare
Choose a tag to compare
  • Tolerate spaces in the install path!

v0.142.2

02 Oct 19:19
b4137f2
Compare
Choose a tag to compare
  • Includes the win32 version of the driver for 32 bit Python installs

v0.142.1

28 Sep 23:14
048cc22
Compare
Choose a tag to compare
chore: make browser.newPage device-friendly (#203)

v0.142.0

28 Sep 19:59
c55f262
Compare
Choose a tag to compare

Rolls Playwright to v1.4.2