Microsoft.Playwright
1.57.0
Prefix Reserved
dotnet add package Microsoft.Playwright --version 1.57.0
NuGet\Install-Package Microsoft.Playwright -Version 1.57.0
<PackageReference Include="Microsoft.Playwright" Version="1.57.0" />
<PackageVersion Include="Microsoft.Playwright" Version="1.57.0" />
<PackageReference Include="Microsoft.Playwright" />
paket add Microsoft.Playwright --version 1.57.0
#r "nuget: Microsoft.Playwright, 1.57.0"
#:package Microsoft.Playwright@1.57.0
#addin nuget:?package=Microsoft.Playwright&version=1.57.0
#tool nuget:?package=Microsoft.Playwright&version=1.57.0
Playwright for .NET 🎭
| Linux | macOS | Windows | |
|---|---|---|---|
| Chromium 143.0.7499.4 | ✅ | ✅ | ✅ |
| WebKit 26.0 | ✅ | ✅ | ✅ |
| Firefox 144.0.2 | ✅ | ✅ | ✅ |
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
- TypeScript,
- Python,
- Java.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Text.Json (>= 6.0.10)
NuGet packages (147)
Showing the top 5 NuGet packages that depend on Microsoft.Playwright:
| Package | Downloads |
|---|---|
|
Microsoft.Playwright.TestAdapter
Playwright enables reliable end-to-end testing for modern web apps. This is a utility package used by the Microsoft.Playwright.NUnit and Microsoft.Playwright.MSTest packages. |
|
|
Microsoft.Playwright.NUnit
Playwright enables reliable end-to-end testing for modern web apps. This package brings in additional helpers and fixtures to enable using it within NUnit. |
|
|
Flexygo
Create your own Professional Solutions. Flexygo allows you to immediatly build incredible Solutions for companies, professionals and individuals. For easy installation visit https://docs.flexygo.com/ |
|
|
Microsoft.Playwright.MSTest
Playwright enables reliable end-to-end testing for modern web apps. This package brings in additional helpers and fixtures to enable using it within MSTest. |
|
|
Coypu
A robust wrapper for browser automation on the .NET platform for Selenium WebDriver or Microsoft Playwright that eases automating ajax-heavy websites and reduces coupling to the HTML, CSS & JS. This package includes the Coypu 4 framework assembly, which should be referenced by your tests. Supported platforms: - .NET 6+ |
GitHub repositories (44)
Showing the top 20 popular GitHub repositories that depend on Microsoft.Playwright:
| Repository | Stars |
|---|---|
|
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
|
|
|
spectreconsole/spectre.console
A .NET library that makes it easier to create beautiful console applications.
|
|
|
btcpayserver/btcpayserver
Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.
|
|
|
dotnet/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
dotnet/docfx
Static site generator for .NET API documentation.
|
|
|
rnwood/smtp4dev
smtp4dev - the fake smtp email server for development and testing
|
|
|
thomhurst/TUnit
A modern, fast and flexible .NET testing framework
|
|
|
SciSharp/BotSharp
AI Multi-Agent Framework in .NET
|
|
|
phongnguyend/Practical.CleanArchitecture
Full-stack .Net 10 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 20, React 19, Vue 3.5, BFF with YARP, NextJs 16, Domain-Driven Design, CQRS, SOLID, Asp.Net Core Identity Custom Storage, OpenID Connect, EF Core, OpenTelemetry, SignalR, Background Services, Health Checks, Rate Limiting, Clouds (Azure, AWS, GCP), ...
|
|
|
Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2
An ASP.NET Core Web App which lets sign-in users (including in your org, many orgs, orgs + personal accounts, sovereign clouds) and call Web APIs (including Microsoft Graph)
|
|
|
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
|
|
|
AzureAD/microsoft-identity-web
Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C
|
|
|
microsoft/dotnet-framework-docker
The repo for the official docker images for .NET Framework on Windows Server Core.
|
|
|
immisterio/Lampac
|
|
|
featurist/coypu
Intuitive, robust browser automation for .Net
|
|
|
mspnp/AzureNamingTool
The Azure Naming Tool is a .NET 10 Blazor application with a RESTful API for generating and validating Azure resource names. Features include SQLite database support, drag-and-drop configuration, Azure tenant validation, and API V2 with bulk operations.
|
|
|
YAFNET/YAFNET
🌐 YAF.NET - C# ASP.NET Forum
|
|
|
therobbiedavis/Listenarr
Listenarr automates audiobook collection management similar to Sonarr or Radarr, but for audiobooks. It can search, download, and organize your library automatically using metadata from Audible and other sources.
|
|
|
dotnet/smartcomponents
Sample intelligent app features provided as reusable .NET components
|
|
|
CodeCubist/FufuLauncher
A third-party launcher for Genshin Impact that supports game injection, automatic check-in, and some useful small features.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.57.0 | 591,613 | 12/4/2025 |
| 1.56.0 | 523,866 | 11/10/2025 |
| 1.55.0 | 1,212,805 | 9/4/2025 |
| 1.55.0-beta-4 | 6,604 | 8/13/2025 |
| 1.55.0-beta-3 | 338 | 8/12/2025 |
| 1.55.0-beta-2 | 370 | 8/12/2025 |
| 1.55.0-beta-1 | 409 | 8/12/2025 |
| 1.54.0 | 991,545 | 7/22/2025 |
| 1.53.0 | 486,334 | 6/25/2025 |
| 1.52.0 | 1,340,428 | 4/30/2025 |
| 1.51.0 | 2,893,484 | 3/18/2025 |
| 1.50.0 | 1,551,254 | 2/3/2025 |
| 1.50.0-beta-2 | 90,054 | 11/25/2024 |
| 1.50.0-beta-1 | 1,356 | 11/25/2024 |
| 1.49.0 | 2,318,391 | 11/21/2024 |
| 1.48.0 | 1,461,219 | 10/21/2024 |
| 1.47.0 | 1,420,760 | 9/12/2024 |
| 1.46.0 | 1,139,140 | 8/12/2024 |
| 1.45.1 | 738,002 | 7/23/2024 |
| 1.45.0 | 563,292 | 7/3/2024 |
| 1.44.0 | 2,619,178 | 5/17/2024 |
| 1.43.0 | 948,537 | 4/9/2024 |
| 1.42.0 | 1,021,440 | 3/7/2024 |
| 1.42.0-beta-3 | 13,819 | 2/13/2024 |
| 1.42.0-beta-2 | 14,130 | 2/8/2024 |
| 1.42.0-beta-1 | 2,653 | 2/7/2024 |
| 1.41.2 | 1,334,054 | 1/24/2024 |
| 1.41.1 | 224,213 | 1/18/2024 |
| 1.41.0 | 202,600 | 1/17/2024 |
| 1.40.0 | 1,452,988 | 11/21/2023 |
| 1.39.0 | 689,954 | 10/16/2023 |
| 1.38.0 | 496,279 | 9/19/2023 |
| 1.37.1 | 507,986 | 8/16/2023 |
| 1.37.0 | 100,386 | 8/14/2023 |
| 1.36.0 | 810,705 | 7/14/2023 |
| 1.36.0-beta-1 | 10,111 | 6/29/2023 |
| 1.35.0 | 718,303 | 6/13/2023 |
| 1.34.0 | 345,030 | 5/26/2023 |
| 1.33.0 | 453,725 | 5/3/2023 |
| 1.33.0-beta-1 | 4,303 | 5/4/2023 |
| 1.32.0 | 798,315 | 3/27/2023 |
| 1.31.1 | 475,708 | 2/27/2023 |
| 1.31.0 | 115,079 | 2/21/2023 |
| 1.31.0-beta-1 | 19,008 | 1/27/2023 |
| 1.30.0 | 595,744 | 1/25/2023 |
| 1.29.0 | 418,516 | 1/4/2023 |
| 1.28.0 | 716,982 | 11/16/2022 |
| 1.27.2 | 1,125,391 | 10/27/2022 |
| 1.27.1 | 704,098 | 10/12/2022 |
| 1.27.0 | 68,763 | 10/8/2022 |
| 1.26.0 | 168,082 | 9/20/2022 |
| 1.25.0 | 489,213 | 8/15/2022 |
| 1.25.0-next-2 | 3,136 | 8/22/2022 |
| 1.25.0-next-1 | 3,936 | 8/12/2022 |
| 1.24.1 | 200,292 | 7/28/2022 |
| 1.24.0 | 67,030 | 7/22/2022 |
| 1.23.0 | 171,836 | 7/1/2022 |
| 1.23.0-next-4 | 3,336 | 7/18/2022 |
| 1.23.0-next-3 | 3,104 | 7/13/2022 |
| 1.23.0-next-2 | 3,391 | 7/13/2022 |
| 1.23.0-next-1 | 3,060 | 6/30/2022 |
| 1.22.0 | 688,189 | 5/13/2022 |
| 1.21.0 | 229,507 | 4/13/2022 |
| 1.20.2 | 641,394 | 3/23/2022 |
| 1.20.1 | 63,381 | 3/16/2022 |
| 1.20.0 | 25,121 | 3/15/2022 |
| 1.20.0-next-1 | 6,202 | 3/2/2022 |
| 1.19.1 | 174,604 | 2/25/2022 |
| 1.19.0 | 186,639 | 2/16/2022 |
| 1.18.1 | 84,616 | 2/1/2022 |
| 1.18.0 | 177,009 | 1/20/2022 |
| 1.17.3 | 231,356 | 12/15/2021 |
| 1.17.2 | 120,660 | 12/3/2021 |
| 1.17.1 | 30,588 | 11/30/2021 |
| 1.17.0 | 105,706 | 11/19/2021 |
| 1.17.0-rc1 | 4,448 | 11/19/2021 |
| 1.16.1 | 144,734 | 10/29/2021 |
| 1.16.0 | 19,835 | 10/21/2021 |
| 1.15.4 | 72,948 | 10/5/2021 |
| 1.15.3 | 6,600 | 10/3/2021 |
| 1.15.2 | 3,671 | 10/1/2021 |
| 1.15.1 | 3,998 | 9/30/2021 |
| 1.15.0 | 15,071 | 9/28/2021 |
| 1.14.1 | 61,564 | 8/24/2021 |
| 1.14.0 | 43,448 | 8/14/2021 |
| 1.13.0 | 49,683 | 7/21/2021 |
| 1.13.0-next-1 | 10,391 | 6/16/2021 |
| 1.12.2 | 40,262 | 6/14/2021 |
| 1.12.1 | 25,200 | 6/9/2021 |
| 1.12.0 | 24,545 | 6/9/2021 |
| 1.12.0-alpha-7 | 2,532 | 6/7/2021 |
| 1.12.0-alpha-5 | 2,305 | 6/6/2021 |
| 1.12.0-alpha-4 | 2,175 | 6/5/2021 |
| 1.12.0-alpha-3 | 2,188 | 6/5/2021 |
| 1.12.0-alpha-2 | 3,136 | 6/5/2021 |
| 1.11.1-alpha-2 | 3,550 | 5/27/2021 |
| 1.11.1-alpha | 2,547 | 5/21/2021 |
| 1.11.0-alpha | 2,610 | 5/21/2021 |