Playwright

Latest version: v1.44.0

Safety actively analyzes 631322 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 17

1.20

Browser Versions

- Chromium 101.0.4921.0
- Mozilla Firefox 97.0.1
- WebKit 15.4

This version was also tested against the following stable channels:

- Google Chrome 99
- Microsoft Edge 99

1.20.0

Highlights

- New options for methods [`page.screenshot()`](https://playwright.dev/python/docs/api/class-page#page-screenshot), [`locator.screenshot()`](https://playwright.dev/python/docs/api/class-locator#locator-screenshot) and [`elementHandle.screenshot()`](https://playwright.dev/python/docs/api/class-elementhandle#element-handle-screenshot):
* Option `animations: "disabled"` rewinds all CSS animations and transitions to a consistent state
* Option `mask: Locator[]` masks given elements, overlaying them with pink `FF00FF` boxes.
- [Trace Viewer](./trace-viewer) now shows [API testing requests](https://playwright.dev/python/docs/api/class-apirequestcontext).
- [`locator.highlight()`](https://playwright.dev/python/docs/api/class-locator#locator-highlight) visually reveals element(s) for easier debugging.

Announcements

- We now ship a designated Python docker image `mcr.microsoft.com/playwright/python`. Please switch over to it if you use
Python. This is the last release that includes Python inside our javascript `mcr.microsoft.com/playwright` docker image.

1.19.1

Highlights

This patch includes the following bug fixes:

https://github.com/microsoft/playwright-python/pull/1167 - [BUG] Task exception was never retrieved when continue_ race with page closed event
https://github.com/microsoft/playwright/issues/12106 - [BUG] Error: EBUSY: resource busy or locked when using volumes in docker-compose with playwright 1.19.0 and mcr.microsoft.com/playwright:v1.15.0-focal
https://github.com/microsoft/playwright/issues/12075 - [Question] After update to 1.19 firefox fails to run

Browser Versions

- Chromium 100.0.4863.0
- Mozilla Firefox 96.0.1
- WebKit 15.4

This version was also tested against the following stable channels:

- Google Chrome 98
- Microsoft Edge 98

1.19

Locator Updates

Locator now supports a `has` option that makes sure it contains another locator inside:

python
page.locator("article", has=page.locator(".highlight")).click()


The snippet above will select article that has highlight in it and will press the button in it.
Read more in [locator documentation](https://playwright.dev/python/docs/api/class-locator#locator-locator-option-has)

Other Updates

- New [`method: Locator.page`](https://playwright.dev/python/docs/api/class-locator#locator-page)
- [`method: Page.screenshot`](https://playwright.dev/python/docs/api/class-page#page-screenshot) and [`method: Locator.screenshot`](https://playwright.dev/python/docs/api/class-locator#locator-screenshot) now automatically hides blinking caret
- Playwright Codegen now generates locators and frame locators

Browser Versions

- Chromium 100.0.4863.0
- Mozilla Firefox 96.0.1
- WebKit 15.4

This version was also tested against the following stable channels:

- Google Chrome 98
- Microsoft Edge 98

1.19.0

1.18.2

Highlights

This patch includes bug fixes for the following issues:

https://github.com/microsoft/playwright-python/pull/1117 - [BUG] Fixing a pyee DeprecationWarning

Browser Versions

- Chromium 99.0.4812.0
- Mozilla Firefox 95.0
- WebKit 15.4

This version was also tested against the following stable channels:

- Google Chrome 97
- Microsoft Edge 97

Page 7 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.