# microsoft/playwright-java

Java version of the Playwright testing and automation library

Repository: https://github.com/microsoft/playwright-java
Canonical: https://ross.abutalabs.com/products/playwright-java
Homepage: https://playwright.dev/java/
Language: Java
License: Apache-2.0
License Family: permissive
Topics: playwright, java
Last push: 2026-08-04T16:59:25+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 84, longevity 100
- inputs: {"age_days": 2168, "days_push": 29, "days_rel": 30, "gap_med": 41, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1536, forks 297 (observed 2026-08-28T04:04:59.944103+00:00)

## What it is
Playwright for Java is a library to automate Chromium, Firefox, and WebKit browsers with a single API, built for reliable end-to-end testing and general web automation. It is distributed via Maven and supports headless or headed execution on Linux, macOS, and Windows, locally or in CI.

## Use cases
- automate browsers in java
- end-to-end testing for web apps in java
- take screenshots of web pages programmatically
- scrape websites with a headless browser
- generate test code by recording browser interactions
- run cross-browser tests on chromium firefox and webkit
- automate login flows and web form submissions
- test web apps in CI pipelines

## When to choose
- you need browser automation or e2e testing from Java or the JVM
- you want a single API covering Chromium, Firefox, and WebKit
- you need reliable auto-waiting behavior to avoid flaky tests
- you want to record tests with codegen and run them on CI

## When to avoid
- you work primarily in JavaScript/TypeScript, Python, or .NET where first-class Playwright test runners exist
- you only need simple HTTP requests without a real browser
- you need a full-featured test runner with assertions and parallelism built in, which the Java version lacks compared to Playwright Test

## Facets
- artifact type: library
- maturity: active
- function: testing, e2e-testing, http-client, web-scraping, developer-tools
- domain: testing, web-development, developer-tools, cross-platform
- platform: jvm, windows, cross-platform
- tags: browser-automation, playwright, headless-browser, selenium-alternative, web-testing, codegen, maven, automation, linux, macos

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

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:59.944103+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-30T04:31:05.494910+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/playwright-java (fetched 2026-08-28T04:04:59.944103+00:00, sha 3008973d6df9)
  - homepage: https://playwright.dev/java/ (fetched 2026-08-29T11:32:56.413007+00:00, sha f82d9b794bf7)
  - site_page: https://playwright.dev/java/docs/intro (fetched 2026-08-29T11:32:56.416641+00:00, sha 67158ea3c0a4)
  - site_page: https://playwright.dev/java/docs/api/class-playwright (fetched 2026-08-29T11:32:56.419098+00:00, sha 52f8e6c670aa)
  - site_page: https://playwright.dev/docs/intro (fetched 2026-08-29T11:32:56.421452+00:00, sha ca82f3fc94fd)
  - site_page: https://playwright.dev/python/docs/intro (fetched 2026-08-29T11:32:56.423651+00:00, sha 5c5822e2deaa)
  - site_page: https://playwright.dev/dotnet/docs/intro (fetched 2026-08-29T11:32:56.425645+00:00, sha a6ef7805c7ac)
  - site_page: https://playwright.dev/java/docs/getting-started-cli (fetched 2026-08-29T11:32:56.427847+00:00, sha 8064f739e2f8)
  - site_page: https://playwright.dev/java/docs/getting-started-mcp (fetched 2026-08-29T11:32:56.429999+00:00, sha 7b2f4a0d14dc)
  - site_page: https://playwright.dev/java/docs/codegen (fetched 2026-08-29T11:32:56.432187+00:00, sha c7340706ead3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
