playwright

Python version of the Playwright testing and automation library.

https://github.com/microsoft/playwright-python

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

chromium firefox playwright webkit

Keywords from Contributors

unit-testing sqlalchemy notebook closember yapf pre-commit-hook gofmt formatter codeformatter autopep8
Last synced: 6 months ago · JSON representation

Repository

Python version of the Playwright testing and automation library.

Basic Info
Statistics
  • Stars: 13,628
  • Watchers: 149
  • Forks: 1,051
  • Open Issues: 45
  • Releases: 99
Topics
chromium firefox playwright webkit
Created over 5 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Code of conduct Security Support

README.md

🎭 Playwright for Python PyPI version Anaconda version Join Discord

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

Open source projects and samples from Microsoft

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 950
  • Total Committers: 47
  • Avg Commits per committer: 20.213
  • Development Distribution Score (DDS): 0.528
Past Year
  • Commits: 161
  • Committers: 13
  • Avg Commits per committer: 12.385
  • Development Distribution Score (DDS): 0.453
Top Committers
Name Email 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
triaging (105) P3-collecting-feedback (33) v1.34 (6) v1.33 (5) v1.49 (5) v1.37 (5) v1.40 (4) v1.42 (3) v1.41 (3) v1.38 (3) v1.32 (3) v1.36 (2) P2-bug (2) v1.52 (2) v1.35 (1) v1.39 (1) dependencies (1) v1.51 (1) v1.54 (1) v1.50 (1) v1.43 (1) v1.44 (1) v1.48 (1)
Pull Request Labels
dependencies (271) python (112) github_actions (4)

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

  • Versions: 79
  • Dependent Packages: 547
  • Dependent Repositories: 4,026
  • Downloads: 22,924,846 Last month
  • Docker Downloads: 578,668
Rankings
Dependent packages count: 0.1%
Dependent repos count: 0.2%
Downloads: 0.2%
Stargazers count: 0.3%
Average: 0.5%
Docker downloads count: 1.1%
Forks count: 1.5%
Maintainers (3)
Last synced: 6 months ago
proxy.golang.org: github.com/microsoft/playwright-python
  • Versions: 98
  • Dependent Packages: 0
  • Dependent Repositories: 1
Rankings
Stargazers count: 0.7%
Forks count: 1.1%
Average: 4.0%
Dependent repos count: 4.7%
Dependent packages count: 9.6%
Last synced: 6 months ago
pypi.org: playwright-firefox

A high-level API to automate web browsers

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 271 Last month
Rankings
Dependent packages count: 8.8%
Average: 29.2%
Dependent repos count: 49.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • conda-incubator/setup-miniconda v2 composite
.github/workflows/publish.yml actions
  • actions/checkout v3 composite
  • conda-incubator/setup-miniconda v2 composite
.github/workflows/publish_canary_docker.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • azure/docker-login v1 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/publish_release_docker.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • azure/docker-login v1 composite
  • docker/setup-qemu-action v2 composite
.github/workflows/test_docker.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/trigger_internal_tests.yml actions
examples/todomvc/requirements.txt pypi
  • pytest-playwright ==0.3.0
local-requirements.txt pypi
  • 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
pyproject.toml pypi
setup.py pypi
  • greenlet ==2.0.2
  • pyee ==9.0.4
  • typing-extensions *