Contents

playwright 1.43.0

0

A high-level API to automate web browsers

A high-level API to automate web browsers

Stars: 10732, Watchers: 10732, Forks: 818, Open Issues: 42

The microsoft/playwright-python repo was created 3 years ago and the last code push was 2 days ago.
The project is extremely popular with a mindblowing 10732 github stars!

How to Install playwright

You can install playwright using pip

pip install playwright

or add it to a project with poetry

poetry add playwright

Package Details

Author
Microsoft Corporation
License
Apache-2.0
Homepage
https://github.com/Microsoft/playwright-python
PyPi:
https://pypi.org/project/playwright/
GitHub Repo:
https://github.com/Microsoft/playwright-python

Classifiers

  • Internet/WWW/HTTP/Browsers
  • Software Development/Testing
No  playwright  pypi packages just yet.

Errors

A list of common playwright errors.

Code Examples

Here are some playwright code examples and snippets.

GitHub Issues

The playwright package has 42 open issues on GitHub

  • [Ports]: Backport client side changes
  • [Question]: How to open multiple pages with different contexts in one browser window instead of multiple browser window?
  • [Question]: CLI arguments
  • [Question]: Best practices for using page-objects as pytest fixtures and for implementing async methods
  • [Question]: I found a way to use a single playwright instance in a multithreaded context
  • Inside pytest_playwright plugin browser_context_args() fixture is session scoped, but should be function scoped.
  • [BUG] Playwright import not working when code execution is triggered from Celery
  • [BUG] context.close() / browser.close() / playwright.stop() hangs when using together with signal
  • Fix context manager freeze on SIGINT
  • use Sequence instead of List in FileChooser.set_files
  • [BUG] FileChooser.set_files takes a list[str | Path] which is invariant
  • Webkit manifests different errors on Playwright 1.33 python version.
  • [Feature] ability group outputs in the trace viewer
  • [Feature]: add page.coverage()

See more issues on GitHub

Related Packages & Articles

shot-scraper 1.4

A command-line utility for taking automated screenshots of websites

cefpython3 66.1

GUI toolkit for embedding a Chromium widget in desktop applications

pyppeteer 2.0.0

Headless chrome/chromium automation library (unofficial port of puppeteer)

helium 5.0.0

Lighter browser automation based on Selenium.

hstspreload 2024.4.1

The hstspreload Python package provides a way to interact with the Chromium HSTS preload list, which is a list of sites that are hardcoded to be HTTPS only for enhanced security. This package allows users to check if a host is on this list, indicating that it should only be accessed via HTTPS. It is updated monthly, but can be manually updated if necessary.

ffpuppet 0.11.2

A Python module that aids in the automation of Firefox at the process level