# microsoft/playwright-python

Python version of the Playwright testing and automation library.

Repository: https://github.com/microsoft/playwright-python
Canonical: https://ross.abutalabs.com/products/playwright-python
Homepage: https://playwright.dev/python/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: playwright, chromium, firefox, webkit
Last push: 2026-08-20T17:53:07+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 83, longevity 100
- inputs: {"age_days": 2254, "days_push": 13, "days_rel": 33, "gap_med": 39.5, "n_releases_24m": 17}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 14952, forks 1217 (observed 2026-08-28T04:11:08.987875+00:00)

## What it is
Playwright for Python is a library to automate Chromium, Firefox, and WebKit browsers with a single API, supporting both sync and async Python. It is designed for reliable end-to-end testing of modern web apps and general-purpose browser automation, with an official Pytest plugin and a codegen test recorder.

## Use cases
- run end-to-end tests for a web app in python
- automate browser interactions across chromium firefox and webkit
- scrape dynamic web pages rendered with javascript
- take screenshots of web pages programmatically
- generate tests by recording browser actions
- test web apps on ci across multiple browsers
- emulate mobile devices in browser tests

## When to choose
- you need cross-browser e2e testing from python with sync or async apis
- you want reliable automation with auto-waiting and resilient locators
- you need headless or headed browser automation on linux, macos, or windows
- you want to record tests with codegen or use a pytest plugin

## When to avoid
- you only need simple http-level requests without a browser
- your team primarily works in javascript, .net, or java where native playwright bindings may fit better
- you need a full test runner with parallelism and sharding out of the box, which is the node.js Playwright Test rather than the python library

## Facets
- artifact type: library
- maturity: stable
- function: e2e-testing, testing, web-scraping, workflow-automation, browser-extension
- domain: testing, web-development, developer-tools
- platform: python, windows, cli
- tags: playwright, browser-automation, chromium, firefox, webkit, pytest-plugin, web-scraping, headless-browser, sync-and-async, automation, linux, macos

## Member repositories
- microsoft/playwright-python (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:08.987875+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:06:50.565269+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/playwright-python (fetched 2026-08-28T04:11:08.987875+00:00, sha 5f20e6c83c65)
  - homepage: https://playwright.dev/python/ (fetched 2026-08-29T08:04:57.945261+00:00, sha 9d5a0afe5894)
  - site_page: https://playwright.dev/python/docs/intro (fetched 2026-08-29T08:04:57.948043+00:00, sha 5c5822e2deaa)
  - site_page: https://playwright.dev/python/docs/api/class-playwright (fetched 2026-08-29T08:04:57.949965+00:00, sha c97addf75d7e)
  - site_page: https://playwright.dev/docs/intro (fetched 2026-08-29T08:04:57.951647+00:00, sha ca82f3fc94fd)
  - site_page: https://playwright.dev/dotnet/docs/intro (fetched 2026-08-29T08:04:57.953270+00:00, sha a6ef7805c7ac)
  - site_page: https://playwright.dev/java/docs/intro (fetched 2026-08-29T08:04:57.955260+00:00, sha 67158ea3c0a4)
  - site_page: https://playwright.dev/python/docs/getting-started-cli (fetched 2026-08-29T08:04:57.957097+00:00, sha b996195fd626)
  - site_page: https://playwright.dev/python/docs/getting-started-mcp (fetched 2026-08-29T08:04:57.959100+00:00, sha 4c3f2ead6f67)
  - site_page: https://playwright.dev/python/docs/codegen (fetched 2026-08-29T08:04:57.960991+00:00, sha c555992043b8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
