# microsoft/playwright-dotnet

.NET version of the Playwright testing and automation library.

Repository: https://github.com/microsoft/playwright-dotnet
Canonical: https://ross.abutalabs.com/products/playwright-dotnet
Homepage: https://playwright.dev/dotnet/
Language: C#
License: MIT
License Family: permissive
Topics: chrome, chromium, firefox, webkit, csharp, playwright
Last push: 2026-08-20T15:45:51+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 85, longevity 100
- inputs: {"age_days": 2415, "days_push": 13, "days_rel": 22, "gap_med": 43, "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 2999, forks 301 (observed 2026-08-28T04:07:37.384172+00:00)

## What it is
The official .NET port of Playwright, a library for automating Chromium, Firefox, and WebKit browsers through a single API. It supports end-to-end web testing with MSTest, NUnit, and xUnit integrations, as well as general-purpose browser automation and scripting.

## Use cases
- write end-to-end tests for web apps in C#
- automate browser interactions like clicking and filling forms
- take screenshots of web pages
- scrape content from JavaScript-rendered sites
- run cross-browser tests on Chromium, Firefox, and WebKit
- generate test code by recording browser actions
- test web APIs with the APIRequest client
- emulate mobile devices in tests

## When to choose
- you need reliable, auto-waiting end-to-end browser tests in a .NET codebase
- you want cross-browser coverage across Chromium, Firefox, and WebKit with one API
- you need headless browser automation for scraping or scripting from C#
- you use MSTest, NUnit, or xUnit and want built-in test base classes

## When to avoid
- you need unit tests without a real browser
- your project is in TypeScript, Python, or Java rather than .NET
- you only need simple HTTP requests without browser rendering
- you cannot download browser binaries in your environment

## Facets
- artifact type: library
- maturity: active
- function: e2e-testing, testing, http-client, web-scraping
- domain: testing, web-development, developer-tools
- platform: cross-platform, windows, dotnet
- tags: browser-automation, playwright, chromium, firefox, webkit, headless-browser, csharp, test-automation, codegen, automation, linux, macos

## Member repositories
- microsoft/playwright-dotnet (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:37.384172+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-29T18:47:25.583693+00:00, confidence not recorded.
  - readme: https://github.com/microsoft/playwright-dotnet (fetched 2026-08-28T04:07:37.384172+00:00, sha 879f79e2ca82)
  - homepage: https://playwright.dev/dotnet/ (fetched 2026-08-29T09:45:56.477243+00:00, sha 014a4c8dffd6)
  - site_page: https://playwright.dev/dotnet/docs/intro (fetched 2026-08-29T09:45:56.486266+00:00, sha a6ef7805c7ac)
  - site_page: https://playwright.dev/dotnet/docs/api/class-playwright (fetched 2026-08-29T09:45:56.488950+00:00, sha 1902bb48812d)
  - site_page: https://playwright.dev/docs/intro (fetched 2026-08-29T09:45:56.491377+00:00, sha ca82f3fc94fd)
  - site_page: https://playwright.dev/python/docs/intro (fetched 2026-08-29T09:45:56.493163+00:00, sha 5c5822e2deaa)
  - site_page: https://playwright.dev/java/docs/intro (fetched 2026-08-29T09:45:56.494761+00:00, sha 67158ea3c0a4)
  - site_page: https://playwright.dev/dotnet/docs/getting-started-cli (fetched 2026-08-29T09:45:56.496781+00:00, sha a748bd75e644)
  - site_page: https://playwright.dev/dotnet/docs/getting-started-mcp (fetched 2026-08-29T09:45:56.498908+00:00, sha c47baf48dd16)
  - site_page: https://playwright.dev/dotnet/docs/codegen (fetched 2026-08-29T09:45:56.500513+00:00, sha f2f061c3b275)
- Data as of 2026-08-30T08:39:29.467469+00:00.
