Releases: microsoft/playwright-python
v1.13.1
Highlights
This patch includes bug fixes for the following issues:
#823 - [Bug]: Warning of Future exception was never retrieved
when expect_*
gets used and throws inside the context manager
#820 - [Bug]: wait_for_load_state("networkidle")
was not working
#812 - [Bug]: added hooks for pyinstaller
Browser Versions
- Chromium 93.0.4576.0
- Mozilla Firefox 90.0
- WebKit 14.2
v1.13.0
Playwright
- 🖖 Programmatic drag-and-drop support via the
page.drag_and_drop()
API. - 🔎 Enhanced HAR with body sizes for requests and responses. Use via
record_har_path
option inbrowser.new_context()
.
Tools
- Playwright Trace Viewer now shows parameters, returned values and
console.log()
calls. - Playwright Inspector can generate Playwright Test tests.
New and Overhauled Guides
- Intro
- Authentication
- Chome Extensions
- Playwright Test Configuration
- Playwright Test Annotations
- Playwright Test Fixtures
Browser Versions
- Chromium 93.0.4576.0
- Mozilla Firefox 90.0
- WebKit 14.2
New Playwright APIs
- new
baseURL
option inbrowser.new_context()
andbrowser.new_page()
response.security_details()
andresponse.server_addr()
page.drag_and_drop()
andframe.drag_and_drop()
download.cancel()
page.input_value()
,frame.input_value()
andelement_handle.input_value()
- new
force
option inpage.fill()
,frame.fill()
, andelement_handle.fill()
- new
force
option inpage.select_option()
,frame.select_option()
, andelement_handle.select_option()
v1.12.1
Highlights
This patch release includes bugfixes for the following issues:
microsoft/playwright#7015 - [BUG] Firefox: strange undefined toJSON property on JS objects
microsoft/playwright#7048 - [BUG] Dialogs cannot be dismissed if tracing is on in Chromium or Webkit
microsoft/playwright#7058 - [BUG] Getting no video frame error for mobile chrome
Browser Versions
- Chromium 93.0.4530.0
- Mozilla Firefox 89.0
- WebKit 14.2
This version of Playwright was also tested against the following stable channels:
- Google Chrome 91
- Microsoft Edge 91
v1.12.0
🧟♂️ Introducing Playwright Trace & TraceViewer
Playwright Trace Viewer is a new GUI tool that helps exploring recorded Playwright traces after the script ran. Playwright traces let you examine:
- page DOM before and after each Playwright action
- page rendering before and after each Playwright action
- browse network during script execution
Traces are recorded using the new browser_context.tracing
API:
browser = chromium.launch()
context = browser.new_context()
# Start tracing before creating / navigating a page.
context.tracing.start(screenshots=True, snapshots=True)
page.goto("https://playwright.dev")
# Stop tracing and export it into a zip archive.
context.tracing.stop(path = "trace.zip")
Traces are examined later with the Playwright CLI:
playwright show-trace trace.zip
That will open the following GUI:
👉 Read more in trace viewer documentation.
Browser Versions
- Chromium 93.0.4530.0
- Mozilla Firefox 89.0
- WebKit 14.2
This version of Playwright was also tested against the following stable channels:
- Google Chrome 91
- Microsoft Edge 91
New APIs
reduced_motion
option inpage.emulate_media()
,browser_type.launch_persistent_context()
,browser.new_context()
andbrowser.new_page()
browser_context.on("request")
browser_context.on("requestfailed")
browser_context.on("requestfinished")
browser_context.on("response")
traces_dir
option inbrowser_type.launch()
andbrowser_type.launch_persistent_context()
- new
browser_context.tracing
API namespace - new
download.page
getter
v1.11.2
Highlights
This patch includes bug fixes across all languages for the following issues:
- #679 - can't get browser's context pages after connect_over_cdp
- microsoft/playwright-java#432 - [Bug] Videos are not complete when an exception is thrown
Browser Versions
- Chromium 92.0.4498.0
- Mozilla Firefox 89.0b6
- WebKit 14.2
This version of Playwright was also tested against the following stable channels:
- Google Chrome 90
- Microsoft Edge 90
v1.11.1
Highlights
🐧 Deploy v1.11 on PIP for Ubuntu users
🐍 Release Playwright-Python on Anaconda: https://anaconda.org/Microsoft/playwright
Browser Versions
- Chromium 92.0.4498.0
- Mozilla Firefox 89.0b6
- WebKit 14.2
This version of Playwright was also tested against the following stable channels:
- Google Chrome 90
- Microsoft Edge 90
v1.11.0
Highlights
🎥 New video: Playwright: A New Test Automation Framework for the Modern Web (slides)
- We talked about Playwright
- Showed engineering work behind the scenes
- Did live demos with new features ✨
- Special thanks to applitools for hosting the event and inviting us!
⚙️ Chrome DevTools Protocol support with browser_type.connect_over_cdp()
.
Browser Versions
- Chromium 92.0.4498.0
- Mozilla Firefox 89.0b6
- WebKit 14.2
This version of Playwright was also tested against the following stable channels:
- Google Chrome 90
- Microsoft Edge 90
New APIs
- new emulation devices: Galaxy S8, Galaxy S9+, Galaxy Tab S4, Pixel 3, Pixel 4
- new methods:
browser_type.connect_over_cdp()
to connect using Chrome DevTools protocolbrowser_type.connect()
to connect to a Playwright serverpage.wait_for_url()
to ensure navigations to URLvideo.delete()
andvideo.save_as()
to manage screen recording
- new options:
screen
option in thebrowser.new_context()
method to emulatewindow.screen
dimensionsposition
option inpage.check()
andpage.uncheck()
methodstrial
option to dry-run actions inpage.check()
,page.uncheck()
,page.click()
,page.dblclick()
,page.hover()
andpage.tap()
headers
option inbrowser_type.connect()
v1.10.0
Highlights
- Run Playwright against Google Chrome and Microsoft Edge stable channels with the new channels API.
- Chromium screenshots are fast on Mac & Windows.
Bundled Browser Versions
- Chromium 90.0.4430.0
- Mozilla Firefox 87.0b10
- WebKit 14.2
This version of Playwright was also tested against the following stable channels:
- Google Chrome 89
- Microsoft Edge 89
New APIs
browserType.launch()
now accepts the new'channel'
option. Read more in our documentation.
v1.9.2
Highlights
Text selector and click()
fixes.
Browser Versions
- Chromium 90.0.4421.0
- Mozilla Firefox 86.0b10
- WebKit 14.1
Issues Closed (4)
#538 - page.on("request", f=func) fails if func is a class method
#534 - Either path or source parameter must be specified
microsoft/playwright#5634 - [REGRESSION]: Test selector changed behavior
microsoft/playwright#5674 - [REGRESSION]: Label is not visible anymore
v1.9.1
Highlights
Text selector fixes.
Browser Versions
- Chromium 90.0.4421.0
- Mozilla Firefox 86.0b10
- WebKit 14.1