Skip to main content
.NETStandard2.0

Playwright enables reliable end-to-end testing for modern web apps. It is built to enable cross-browser web automation that is ever-green, capable, reliable and fast. Learn more at https://playwright.dev/dotnet/.

Published
Nov 17, 2026
7d ago
Total Downloads
80.0M
80,035,789

Install

dotnet add package Microsoft.Playwright --version 1.65.0
ProductVersions
.NET Standard
netstandard2.0

README

Playwright for .NET 🎭

NuGet version Join Discord

Linux macOS Windows
Chromium 158.0.8127.18 βœ… βœ… βœ…
WebKit 27.2 βœ… βœ… βœ…
Firefox 159.0 βœ… βœ… βœ…

Playwright for .NET is the official language port of Playwright, the library to automate Chromium, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable and fast.

Documentation

https://playwright.dev/dotnet/docs/intro

API Reference

https://playwright.dev/dotnet/docs/api/class-playwright

using System.Threading.Tasks;
using Microsoft.Playwright;

using var playwright = await Playwright.CreateAsync();
await using var browser = await playwright.Chromium.LaunchAsync(new() { Headless = false });
var page = await browser.NewPageAsync();
await page.GotoAsync("https://playwright.dev/dotnet");
await page.ScreenshotAsync(new() { Path = "screenshot.png" });

Other languages

More comfortable in another programming language? Playwright is also available in

Changes from Previous Version

No structural changes between v1.64.1 and v1.65.0.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.