Playwright

Latest version: v1.49.0

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

Scan your dependencies

Page 21 of 32

1.11.1

Highlights

🐧 Deploy [v1.11](https://github.com/microsoft/playwright-python/releases/tag/v1.11.0) 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

1.11.0

Highlights

🎥 New video: [Playwright: A New Test Automation Framework for the Modern Web](https://youtu.be/_Jla6DyuEu4) ([slides](https://docs.google.com/presentation/d/1xFhZIJrdHkVe2CuMKOrni92HoG2SWslo0DhJJQMR1DI/edit?usp=sharing))
- We talked about Playwright
- Showed engineering work behind the scenes
- Did live demos with new features ✨
- **Special thanks** to [applitools](http://applitools.com/) 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 protocol
* [`browser_type.connect()`] to connect to a Playwright server
* [`page.wait_for_url()`] to ensure navigations to URL
* [`video.delete()`] and [`video.save_as()`] to manage screen recording
- new options:
* `screen` option in the [`browser.new_context()`] method to emulate `window.screen` dimensions
* `position` option in [`page.check()`] and [`page.uncheck()`] methods
* `trial` 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()`]


[`browser.new_context()`]: https://playwright.dev/python/docs/next/api/class-browser#browsernew_contextkwargs
[`page.wait_for_url()`]: https://playwright.dev/python/docs/next/api/class-page#pagewait_for_urlurl-kwargs
[`video.delete()`]: https://playwright.dev/python/docs/next/api/class-video#videodelete
[`video.save_as()`]: https://playwright.dev/python/docs/next/api/class-video#videosave_aspath
[`page.click()`]: https://playwright.dev/python/docs/next/api/class-page#pageclickselector-kwargs
[`page.check()`]: https://playwright.dev/python/docs/next/api/class-page#pagecheckselector-kwargs
[`page.uncheck()`]: https://playwright.dev/python/docs/next/api/class-page#pageuncheckselector-kwargs
[`page.dblclick()`]: https://playwright.dev/python/docs/next/api/class-page#pagedblclickselector-kwargs
[`page.hover()`]: https://playwright.dev/python/docs/next/api/class-page#pagehoverselector-kwargs
[`browser_type.connect()`]: https://playwright.dev/python/docs/next/api/class-browsertype#browser_typeconnectws_endpoint-kwargs
[`page.tap()`]: https://playwright.dev/python/docs/next/api/class-page#pagetapselector-kwargs
[`browser_type.connect()`]: https://playwright.dev/python/docs/next/api/class-browsertype#browser_typeconnectws_endpoint-kwargs
[`browser_type.connect_over_cdp()`]: https://playwright.dev/python/docs/next/api/class-browsertype#browser_typeconnect_over_cdpendpoint_url-kwargs

1.10.0

Highlights

- Run Playwright against **Google Chrome** and **Microsoft Edge** stable channels with the [new channels API](https://playwright.dev/python/docs/browsers).
- 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()`](https://playwright.dev/python/docs/next/api/class-browsertype#browser_typelaunchkwargs) now accepts the new `'channel'` option. Read more in [our documentation](https://playwright.dev/python/docs/browsers).

1.9.2

Highlights

Text selector and `click()` fixes.

Browser Versions

- Chromium 90.0.4421.0
- Mozilla Firefox 86.0b10
- WebKit 14.1

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

1.9.1

Highlights

Text selector fixes.

Browser Versions

- Chromium 90.0.4421.0
- Mozilla Firefox 86.0b10
- WebKit 14.1

1.9.0

Highlights

- [Playwright for Python](https://github.com/microsoft/playwright-python) is **now stable** with an idiomatic snake case API and pre-built [Docker image](https://playwright.dev/docs/docker) to run tests in CI/CD.

- [Playwright Inspector](https://playwright.dev/docs/inspector) is a **new GUI tool** to author and debug your tests.
- **Line-by-line debugging** of your Playwright scripts, with play, pause and step-through.
- Author new scripts by **recording user actions**.
- **Generate element selectors** for your script by hovering over elements.
- Set the `PWDEBUG=1` environment variable to launch the Inspector

- **Pause script execution** with [`page.pause()`](https://playwright.dev/docs/api/class-page#pagepause) in headed mode. Pausing the page launches [Playwright Inspector](https://playwright.dev/docs/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](https://playwright.dev/docs/selectors#text-selector).

- **Page dialogs are now auto-dismissed** during execution, unless a listener for `dialog` event is configured. [Learn more](https://playwright.dev/docs/dialogs) about this.


Browser Versions

- Chromium 90.0.4421.0
- Mozilla Firefox 86.0b10
- WebKit 14.1

New APIs

- [`page.pause`](https://playwright.dev/docs/next/api/class-page#pagepause)

Page 21 of 32

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.