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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Playwright" Version="1.57.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Playwright" Version="1.57.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Playwright" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Playwright --version 1.57.0
                    
#r "nuget: Microsoft.Playwright, 1.57.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Playwright@1.57.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Playwright&version=1.57.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Playwright&version=1.57.0
                    
Install as a Cake Tool

Playwright for .NET 🎭

NuGet version Join Discord

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

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (144)

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 (47)

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
dotnet/interactive
.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
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
dotnet/smartcomponents
Sample intelligent app features provided as reusable .NET components
martincostello/dotnet-minimal-api-integration-testing
An example of integration testing ASP.NET Core Minimal hosting and APIs
Version Downloads Last Updated
1.57.0 207,808 12/4/2025
1.56.0 393,455 11/10/2025
1.55.0 1,089,582 9/4/2025
1.55.0-beta-4 6,241 8/13/2025
1.55.0-beta-3 333 8/12/2025
1.55.0-beta-2 369 8/12/2025
1.55.0-beta-1 403 8/12/2025
1.54.0 911,550 7/22/2025
1.53.0 465,443 6/25/2025
1.52.0 1,282,485 4/30/2025
1.51.0 2,666,334 3/18/2025
1.50.0 1,509,710 2/3/2025
1.50.0-beta-2 89,209 11/25/2024
1.50.0-beta-1 1,349 11/25/2024
1.49.0 2,244,488 11/21/2024
1.48.0 1,409,887 10/21/2024
1.47.0 1,400,093 9/12/2024
1.46.0 1,124,196 8/12/2024
1.45.1 727,977 7/23/2024
1.45.0 553,836 7/3/2024
1.44.0 2,582,352 5/17/2024
1.43.0 941,269 4/9/2024
1.42.0 1,014,596 3/7/2024
1.42.0-beta-3 13,813 2/13/2024
1.42.0-beta-2 14,119 2/8/2024
1.42.0-beta-1 2,651 2/7/2024
1.41.2 1,324,286 1/24/2024
1.41.1 223,780 1/18/2024
1.41.0 201,663 1/17/2024
1.40.0 1,434,279 11/21/2023
1.39.0 686,483 10/16/2023
1.38.0 495,484 9/19/2023
1.37.1 506,642 8/16/2023
1.37.0 99,819 8/14/2023
1.36.0 806,217 7/14/2023
1.36.0-beta-1 10,100 6/29/2023
1.35.0 716,273 6/13/2023
1.34.0 344,246 5/26/2023
1.33.0 451,234 5/3/2023
1.33.0-beta-1 4,295 5/4/2023
1.32.0 796,976 3/27/2023
1.31.1 474,536 2/27/2023
1.31.0 114,665 2/21/2023
1.31.0-beta-1 18,993 1/27/2023
1.30.0 594,399 1/25/2023
1.29.0 418,194 1/4/2023
1.28.0 715,791 11/16/2022
1.27.2 1,124,046 10/27/2022
1.27.1 697,833 10/12/2022
1.27.0 68,697 10/8/2022
1.26.0 167,872 9/20/2022
1.25.0 488,578 8/15/2022
1.25.0-next-2 3,127 8/22/2022
1.25.0-next-1 3,930 8/12/2022
1.24.1 200,065 7/28/2022
1.24.0 66,978 7/22/2022
1.23.0 171,617 7/1/2022
1.23.0-next-4 3,327 7/18/2022
1.23.0-next-3 3,098 7/13/2022
1.23.0-next-2 3,383 7/13/2022
1.23.0-next-1 3,050 6/30/2022
1.22.0 685,938 5/13/2022
1.21.0 228,986 4/13/2022
1.20.2 633,617 3/23/2022
1.20.1 63,326 3/16/2022
1.20.0 25,069 3/15/2022
1.20.0-next-1 6,194 3/2/2022
1.19.1 174,091 2/25/2022
1.19.0 186,265 2/16/2022
1.18.1 84,574 2/1/2022
1.18.0 176,941 1/20/2022
1.17.3 231,140 12/15/2021
1.17.2 119,408 12/3/2021
1.17.1 30,549 11/30/2021
1.17.0 105,649 11/19/2021
1.17.0-rc1 4,437 11/19/2021
1.16.1 144,332 10/29/2021
1.16.0 19,797 10/21/2021
1.15.4 72,898 10/5/2021
1.15.3 6,555 10/3/2021
1.15.2 3,621 10/1/2021
1.15.1 3,952 9/30/2021
1.15.0 15,029 9/28/2021
1.14.1 61,503 8/24/2021
1.14.0 43,348 8/14/2021
1.13.0 49,614 7/21/2021
1.13.0-next-1 10,381 6/16/2021
1.12.2 40,216 6/14/2021
1.12.1 25,115 6/9/2021
1.12.0 24,266 6/9/2021
1.12.0-alpha-7 2,522 6/7/2021
1.12.0-alpha-5 2,299 6/6/2021
1.12.0-alpha-4 2,173 6/5/2021
1.12.0-alpha-3 2,178 6/5/2021
1.12.0-alpha-2 3,129 6/5/2021
1.11.1-alpha-2 3,544 5/27/2021
1.11.1-alpha 2,539 5/21/2021
1.11.0-alpha 2,602 5/21/2021