Playwright

Latest version: v1.49.0

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

Scan your dependencies

Page 14 of 32

1.21.1

Highlights

This patch includes the following bug fixes:

https://github.com/microsoft/playwright/pull/13597 - [BUG] fullyParallel created too many workers, slowing down test run
https://github.com/microsoft/playwright/issues/13530 - [REGRESSION]: Pull request #12877 prevents the library from being used on any linux distro that is not Ubuntu

Browser Versions

- Chromium 101.0.4951.26
- Mozilla Firefox 98.0.2
- WebKit 15.4

This version was also tested against the following stable channels:

- Google Chrome 100
- Microsoft Edge 100

1.21.0

Highlights

- New **experimental** role selectors that allow selecting elements by their [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles), [ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes) and [accessible name](https://w3c.github.io/accname/#dfn-accessible-name).

python
Click a button with accessible name "log in"
page.click("role=button[name='log in']")


To use role selectors, make sure to pass `PLAYWRIGHT_EXPERIMENTAL_FEATURES=1` environment variable.

Read more in [our documentation](https://playwright.dev/python/docs/selectors#role-selector).
- New `scale` option in [`Page.screenshot`](https://playwright.dev/python/docs/api/class-page#page-screenshot) for smaller sized screenshots.
- New `caret` option in [`Page.screenshot`](https://playwright.dev/python/docs/api/class-page#page-screenshot) to control text caret. Defaults to `"hide"`.

Behavior Changes

- The `mcr.microsoft.com/playwright` docker image no longer contains Python. Please use `mcr.microsoft.com/playwright/python`
as a Playwright-ready docker image with pre-installed Python.
- Playwright now supports large file uploads (100s of MBs) via [`Locator.set_input_files`](https://playwright.dev/python/docs/api/class-locator#locator-set-input-files) API.

Browser Versions

- Chromium 101.0.4951.26
- Mozilla Firefox 98.0.2
- WebKit 15.4

This version was also tested against the following stable channels:

- Google Chrome 100
- Microsoft Edge 100

1.20.2

Highlights

This patch includes the following bug fixes:

https://github.com/microsoft/playwright/issues/13078 - [BUG] Extension required when importing other files with type="module"
https://github.com/microsoft/playwright/issues/13099 - [BUG] beforeAll is called before each test (fullyParallel)
https://github.com/microsoft/playwright/issues/13204 - [BUG] mask stalls the screenshot

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.1

Highlights

This patch includes the following bug fixes:

https://github.com/microsoft/playwright/issues/12711 - [REGRESSION] Page.screenshot hangs on some sites
https://github.com/microsoft/playwright/issues/12807 - [BUG] Cookies get assigned before fulfilling a response
https://github.com/microsoft/playwright/issues/12821 - [BUG] Chromium: Cannot click, element intercepts pointer events
https://github.com/microsoft/playwright/issues/12887 - [BUG] Locator.count() with _vue selector with Repro
https://github.com/microsoft/playwright/issues/12974 - [BUG] Regression - chromium browser closes during test or debugging session on macos

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

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.

Page 14 of 32

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.