playwright
Python version of the Playwright testing and automation library.
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 47 committers (2.1%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (5.8%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Python version of the Playwright testing and automation library.
Basic Info
- Host: GitHub
- Owner: microsoft
- License: apache-2.0
- Language: Python
- Default Branch: main
- Homepage: https://playwright.dev/python/
- Size: 8.19 MB
Statistics
- Stars: 13,628
- Watchers: 149
- Forks: 1,051
- Open Issues: 45
- Releases: 99
Topics
Metadata Files
README.md
🎭 Playwright for Python

Playwright is a Python library to automate Chromium, Firefox and WebKit browsers with a single API. Playwright delivers automation that is ever-green, capable, reliable and fast. See how Playwright is better.
| | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | | Chromium <!-- GEN:chromium-version -->140.0.7339.16<!-- GEN:stop --> | ✅ | ✅ | ✅ | | WebKit <!-- GEN:webkit-version -->26.0<!-- GEN:stop --> | ✅ | ✅ | ✅ | | Firefox <!-- GEN:firefox-version -->141.0<!-- GEN:stop --> | ✅ | ✅ | ✅ |
Documentation
https://playwright.dev/python/docs/intro
API Reference
https://playwright.dev/python/docs/api/class-playwright
Example
```py from playwright.syncapi import syncplaywright
with syncplaywright() as p: for browsertype in [p.chromium, p.firefox, p.webkit]: browser = browsertype.launch() page = browser.newpage() page.goto('http://playwright.dev') page.screenshot(path=f'example-{browser_type.name}.png') browser.close() ```
```py import asyncio from playwright.asyncapi import asyncplaywright
async def main(): async with asyncplaywright() as p: for browsertype in [p.chromium, p.firefox, p.webkit]: browser = await browsertype.launch() page = await browser.newpage() await page.goto('http://playwright.dev') await page.screenshot(path=f'example-{browser_type.name}.png') await browser.close()
asyncio.run(main()) ```
Other languages
More comfortable in another programming language? Playwright is also available in - Node.js (JavaScript / TypeScript), - .NET, - Java.
Owner
- Name: Microsoft
- Login: microsoft
- Kind: organization
- Email: opensource@microsoft.com
- Location: Redmond, WA
- Website: https://opensource.microsoft.com
- Twitter: OpenAtMicrosoft
- Repositories: 7,257
- Profile: https://github.com/microsoft
Open source projects and samples from Microsoft
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Max Schmitt | m****x@s****x | 448 |
| Pavel Feldman | p****n@g****m | 178 |
| dependabot[bot] | 4****] | 141 |
| Kumar Aditya | 5****3 | 65 |
| Ross Wollman | r****l | 41 |
| Andrey Lushnikov | a****v@g****m | 9 |
| Yury Semikhatsky | y****s@c****g | 6 |
| Daniel Henderson | 7****n | 5 |
| Dmitry Gozman | d****n@g****m | 4 |
| Eli Black | e****3@h****m | 4 |
| Microsoft Open Source | m****e | 4 |
| DM_ | 6****y | 3 |
| m9810223 | 3****3 | 3 |
| Arjun Attam | a****m@g****m | 3 |
| Adam Gastineau | a****m@a****m | 2 |
| KRRT7 | 1****7 | 2 |
| cbows | 3****s | 2 |
| Adam Johnson | me@a****u | 1 |
| AlberLC | 3****C | 1 |
| Alex Brook | 9****m | 1 |
| Andreas Motl | a****l@e****e | 1 |
| Anže Vodovnik | a****e@v****m | 1 |
| Artem | a****l | 1 |
| shettysudhird | s****d@g****m | 1 |
| oxy-star | 1****r | 1 |
| nmashewske | 3****e | 1 |
| isaa_ctaylor | 6****r | 1 |
| Yağızcan Değirmenci | 6****d | 1 |
| Tobias Fischer | i****o@t****o | 1 |
| Thomas Grainger | t****n@g****m | 1 |
| and 17 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 648
- Total pull requests: 600
- Average time to close issues: about 1 month
- Average time to close pull requests: 10 days
- Total issue authors: 485
- Total pull request authors: 45
- Average comments per issue: 2.16
- Average comments per pull request: 0.39
- Merged pull requests: 440
- Bot issues: 6
- Bot pull requests: 271
Past Year
- Issues: 204
- Pull requests: 312
- Average time to close issues: 6 days
- Average time to close pull requests: 4 days
- Issue authors: 157
- Pull request authors: 19
- Average comments per issue: 0.89
- Average comments per pull request: 0.27
- Merged pull requests: 230
- Bot issues: 6
- Bot pull requests: 165
Top Authors
Issue Authors
- playwrightmachine (22)
- sundar-ds (16)
- DetachHead (14)
- mxschmitt (7)
- jolly-xw (5)
- microsoft-playwright-automation[bot] (5)
- Fly-Playgroud (4)
- smolkin895 (4)
- kinopop (4)
- pyNpy (4)
- gcil125 (4)
- yeswanth-ds (4)
- wanghaisheng (3)
- FANGOD (3)
- Chetan11-dev (3)
Pull Request Authors
- dependabot[bot] (271)
- mxschmitt (239)
- neoncube2 (10)
- agg23 (8)
- danphenderson (6)
- vignesh1507 (5)
- LironHaroni (3)
- KRRT7 (3)
- m9810223 (3)
- stollero (2)
- shettysudhird (2)
- DetachHead (2)
- oxy-star (2)
- ttm56p (2)
- x0day (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- pypi 22,925,117 last-month
- Total docker downloads: 578,668
-
Total dependent packages: 547
(may contain duplicates) -
Total dependent repositories: 4,027
(may contain duplicates) - Total versions: 183
- Total maintainers: 4
pypi.org: playwright
A high-level API to automate web browsers
- Documentation: https://playwright.readthedocs.io/
- License: apache-2.0
-
Latest release: 1.55.0
published 6 months ago
Rankings
Maintainers (3)
proxy.golang.org: github.com/microsoft/playwright-python
- Documentation: https://pkg.go.dev/github.com/microsoft/playwright-python#section-documentation
- License: apache-2.0
-
Latest release: v1.55.0
published 6 months ago
Rankings
pypi.org: playwright-firefox
A high-level API to automate web browsers
- Documentation: https://playwright-firefox.readthedocs.io/
- License: apache-2.0
-
Latest release: 1.0.4
published 6 months ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- conda-incubator/setup-miniconda v2 composite
- actions/checkout v3 composite
- conda-incubator/setup-miniconda v2 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- azure/docker-login v1 composite
- docker/setup-qemu-action v2 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- azure/docker-login v1 composite
- docker/setup-qemu-action v2 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- pytest-playwright ==0.3.0
- Pillow ==10.0.0
- auditwheel ==5.4.0
- autobahn ==23.1.2
- black ==23.9.1
- flake8 ==6.1.0
- flaky ==3.7.0
- mypy ==1.5.1
- objgraph ==3.6.0
- pixelmatch ==0.3.0
- pre-commit ==3.4.0
- pyOpenSSL ==23.2.0
- pytest ==7.4.2
- pytest-asyncio ==0.21.1
- pytest-cov ==4.1.0
- pytest-repeat ==0.9.1
- pytest-timeout ==2.1.0
- pytest-xdist ==3.3.1
- requests ==2.31.0
- service_identity ==23.1.0
- setuptools ==68.2.2
- twine ==4.0.2
- twisted ==23.8.0
- types-pyOpenSSL ==23.2.0.2
- wheel ==0.41.2
- greenlet ==2.0.2
- pyee ==9.0.4
- typing-extensions *