NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #308 most downloaded on PyPI
A high-level API to automate web browsers
Last release 4 days ago
15 Sep 2026
Ships fairly regularly
a new release about every 6 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
85 releases · first in 2021
One column per quarter.
https://github.com/microsoft/playwright-python/pull/1117 - [BUG] Fixing a pyee DeprecationWarning
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright-python/pull/1117 - [BUG] Fixing a pyee DeprecationWarning
This version was also tested against the following stable channels:
This patch includes bug fixes for the following issues:
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/11447 - [BUG] window.orientation on WebKit is different to what Safari gives you
This version was also tested against the following stable channels:
Playwright for Python 1.18 introduces new API Testing that lets you send requests to the server directly from Python! Now you can:
Playwright for Python 1.18 introduces new API Testing that lets you send requests to the server directly from Python! Now you can:
To do a request on behalf of Playwright's Page, use new page.request API:
# Do a GET request on behalf of page
res = page.request.get("http://example.com/foo.json")
Read more in our documentation.
Playwright for Python 1.18 introduces Web-First Assertions.
Consider the following example:
from playwright.sync_api import Page, expect
def test_status_becomes_submitted(page: Page) -> None:
# ..
page.click("#submit-button")
expect(page.locator(".status")).to_have_text("Submitted")
Playwright will be re-testing the node with the selector .status until
fetched Node has the "Submitted" text. It will be re-fetching the node and
checking it over and over, until the condition is met or until the timeout is
reached. You can pass this timeout as an option.
Read more in our documentation.
Each locator can now be optionally filtered by the text it contains:
page.locator("li", has_text="my item").locator("button").click()
Read more in locator documentation
accept_downloads option now defaults to True.sources option to embed sources into traces.This version was also tested against the following stable channels:
This patch includes bug fixes for the following issues:
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/10638 - [BUG] Locator.click -> subtree intercepts pointer events since version 1.17.0 https://github.com/microsoft/playwright/issues/10632 - [BUG] Playwright 1.17.0 -> After clicking the element - I get an error that click action was failed https://github.com/microsoft/playwright/issues/10627 - [REGRESSION]: Can no longer click Material UI select box https://github.com/microsoft/playwright/issues/10620 - [BUG] trailing zero width whitespace fails toHaveText
This version of Playwright was also tested against the following stable channels:
This patch includes bug fixes for the following issues:
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/10127 - [BUG] Add Trace Viewer error handling (file not found, not parsable) https://github.com/microsoft/playwright/issues/10436 - [Bug]: Add hints on how to open trace from HTML report when opened locally https://github.com/microsoft/playwright/pull/10492 - [Bug]: Fix broken Firefox User-Agent on 'Desktop Firefox' devices
This version was also tested against the following stable channels:
Playwright 1.17 introduces [frame locators] - a locator to the iframe on the page. Frame locators capture the logic sufficient to retrieve the iframe
Playwright 1.17 introduces frame locators - a locator to the iframe on the page. Frame locators capture the logic sufficient to retrieve the iframe and then locate elements in that iframe. Frame locators are strict by default, will wait for iframe to appear and can be used in Web-First assertions.
Frame locators can be created with either page.frame_locator(selector) or locator.frame_locator(selector) method.
locator = page.frame_locator("my-frame").locator("text=Submit")
locator.click()
Read more at our documentation.
Playwright Trace Viewer is now available online at https://trace.playwright.dev! Just drag-and-drop your trace.zip file to inspect its contents.
NOTE: trace files are not uploaded anywhere; trace.playwright.dev is a progressive web application that processes traces locally.
This version was also tested against the following stable channels:
This patch includes bug fixes for the following issues:
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/9692 - [BUG] HTML report shows locator._withElement for locator.evaluate https://github.com/microsoft/playwright/issues/7818 - [Bug]: dedup snapshot CSS images
This version was also tested against the following stable channels:
(1.16.2-1635322350000)
Wait for a locator to resolve to a single element with a given state. Defaults to the state: 'visible'.
Wait for a locator to resolve to a single element with a given state.
Defaults to the state: 'visible'.
order_sent = page.locator("#order-sent")
order_sent.wait_for()
Read more about locator.wait_for().
npx playwright show-trace and drop trace files to the trace viewer PWARead more about Trace Viewer.
This version of Playwright was also tested against the following stable channels:
(1.16.0-1634781227000)
This patch includes bug fixes for the following issues:
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/9261 - [BUG] npm init playwright fails on path spaces https://github.com/microsoft/playwright/issues/9298 - [Question]: Should new Headers methods work in RouteAsync ?
This version of Playwright was also tested against the following stable channels:
(driver version: 1.15.2-1633455481000)
This patch includes bug fixes for the following issues:
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/9065 - [BUG] browser(webkit): disable COOP support https://github.com/microsoft/playwright/issues/9092 - [BUG] browser(webkit): fix text padding
This version of Playwright was also tested against the following stable channels:
(driver version: 1.15.0-1633020276000)
This patch includes bug fixes for the following issues:
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/pull/8955 - [BUG] fix(inspector): stop on all snapshottable actions https://github.com/microsoft/playwright/pull/8999 - [BUG] fix: do not dedup header values https://github.com/microsoft/playwright/pull/9038 - [BUG] fix: restore support for slowmo connect option
This version of Playwright was also tested against the following stable channels:
By using `Page.mouse.wheel` you are now able to scroll vertically or horizontally.
By using Page.mouse.wheel you are now able to scroll vertically or horizontally.
Previously it was not possible to get multiple header values of a response. This is now possible and additional helper functions are available:
Its now possible to emulate the forced-colors CSS media feature by passing it in the context options or calling Page.emulate_media().
times option to specify how many times this route should be matched.This version of Playwright was also tested against the following stable channels:
…- [BUG] Mark timeout in isVisible as deprecated and noop
This patch includes bug fixes for the following issues:
microsoft/playwright#8287 - [BUG] webkit crashes intermittently: "file data stream has an unexpected number of bytes" microsoft/playwright#8281 - [BUG] HTML report crashes if diff snapshot does not exists microsoft/playwright#8230 - Using React Selectors with multiple React trees microsoft/playwright#8366 - [BUG] Mark timeout in isVisible as deprecated and noop
This version of Playwright was also tested against the following stable channels:
Selector ambiguity is a common problem in automation testing. "strict" mode ensures that your selector points to a single element and throws otherwise
Selector ambiguity is a common problem in automation testing. "strict" mode ensures that your selector points to a single element and throws otherwise.
Pass strict = true into your action calls to opt in.
# This will throw if you have more than one button!
page.click('button', strict=true)
Locator represents a view to the element(s) on the page. It captures the logic sufficient to retrieve the element at any given moment.
The difference between the Locator and ElementHandle is that the latter points to a particular element, while Locator captures the logic of how to retrieve that element.
Also, locators are "strict" by default!
locator = page.locator('button')
locator.click()
Learn more in the documentation.
React and Vue selectors allow selecting elements by its component name and/or property values. The syntax is very similar to attribute selectors and supports all attribute selector operators.
page.click('_react=SubmitButton[enabled=true]')
page.click('_vue=submit-button[enabled=true]')
Learn more in the react selectors documentation and the vue selectors documentation.
nth and visible selector enginesnth selector engine is equivalent to the :nth-match pseudo class, but could be combined with other selector engines.visible selector engine is equivalent to the :visible pseudo class, but could be combined with other selector engines.# select the first button among all buttons
button.click('button >> nth=0')
# or if you are using locators, you can use first(), nth() and last()
page.locator('button').first().click()
# click a visible button
button.click('button >> visible=true')
This version of Playwright was also tested against the following stable channels:
This patch includes bug fixes for the following issues:
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
🖖 Programmatic drag-and-drop support via the [page.drag_and_drop()] API.
page.drag_and_drop() API.record_har_path option in browser.new_context().console.log() calls.baseURL option in browser.new_context() and browser.new_page()response.security_details() and response.server_addr()page.drag_and_drop() and frame.drag_and_drop()download.cancel()page.input_value(), frame.input_value() and element_handle.input_value()force option in page.fill(), frame.fill(), and element_handle.fill()force option in page.select_option(), frame.select_option(), and element_handle.select_option()This patch release includes bugfixes for the following issues:
This patch release includes bugfixes for the following issues:
https://github.com/microsoft/playwright/issues/7015 - [BUG] Firefox: strange undefined toJSON property on JS objects https://github.com/microsoft/playwright/issues/7048 - [BUG] Dialogs cannot be dismissed if tracing is on in Chromium or Webkit https://github.com/microsoft/playwright/issues/7058 - [BUG] Getting no video frame error for mobile chrome
This version of Playwright was also tested against the following stable channels:
Playwright Trace Viewer is a new GUI tool that helps exploring recorded Playwright traces after the script ran. Playwright traces let you examine:
Playwright Trace Viewer is a new GUI tool that helps exploring recorded Playwright traces after the script ran. Playwright traces let you examine:
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.
This version of Playwright was also tested against the following stable channels:
reduced_motion option in page.emulate_media(), browser_type.launch_persistent_context(), browser.new_context() and browser.new_page()browser_context.on("request")browser_context.on("requestfailed")browser_context.on("requestfinished")browser_context.on("response")traces_dir option in browser_type.launch() and browser_type.launch_persistent_context()browser_context.tracing API namespacedownload.page getterThis patch includes bug fixes across all languages for the following issues:
This patch includes bug fixes across all languages for the following issues:
This version of Playwright was also tested against the following stable channels:
🐧 Deploy v1.11 on PIP for Ubuntu users 🐍 Release Playwright-Python on Anaconda: https://anaconda.org/Microsoft/playwright
🐧 Deploy v1.11 on PIP for Ubuntu users 🐍 Release Playwright-Python on Anaconda: https://anaconda.org/Microsoft/playwright
This version of Playwright was also tested against the following stable channels:
🎥 New video: Playwright: A New Test Automation Framework for the Modern Web (slides)
🎥 New video: Playwright: A New Test Automation Framework for the Modern Web (slides)
⚙️ Chrome DevTools Protocol support with browser_type.connect_over_cdp().
This version of Playwright was also tested against the following stable channels:
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() and video.save_as() to manage screen recordingscreen option in the browser.new_context() method to emulate window.screen dimensionsposition option in page.check() and page.uncheck() methodstrial option to dry-run actions in page.check(), page.uncheck(), page.click(), page.dblclick(), page.hover() and page.tap()headers option in browser_type.connect()Run Playwright against Google Chrome and Microsoft Edge stable channels with the new channels API.
This version of Playwright was also tested against the following stable channels:
browserType.launch() now accepts the new 'channel' option. Read more in our documentation.Text selector and click() fixes.
Text selector and click() fixes.
<details> <summary><b>Issues Closed (4)</b></summary>
#538 - page.on("request", f=func) fails if func is a class method #534 - Either path or source parameter must be specified
https://github.com/microsoft/playwright/issues/5634 - [REGRESSION]: Test selector changed behavior https://github.com/microsoft/playwright/issues/5674 - [REGRESSION]: Label is not visible anymore
</details>
## Highlights Text selector fixes. ## Browser Versions - Chromium 90.0.4421.0 - Mozilla Firefox 86.0b10 - WebKit 14.1
Text selector fixes.
Playwright for Python is now stable with an idiomatic snake case API and pre-built Docker image to run tests in CI/CD.
Playwright for Python is now stable with an idiomatic snake case API and pre-built Docker image to run tests in CI/CD.
Playwright Inspector is a new GUI tool to author and debug your tests.
PWDEBUG=1 environment variable to launch the InspectorPause script execution with page.pause() in headed mode. Pausing the page launches Playwright Inspector for debugging.
New has-text pseudo-class for CSS selectors. :has-text("example") matches any element containing "example" somewhere inside, possibly in a child or a descendant element. See more examples.
Page dialogs are now auto-dismissed during execution, unless a listener for dialog event is configured. Learn more about this.
Your coding agent can read these notes before it upgrades. Set up the MCP server →