Microsoft.Playwright 1.55.0

Prefix Reserved
dotnet add package Microsoft.Playwright --version 1.55.0
                    
NuGet\Install-Package Microsoft.Playwright -Version 1.55.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.55.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Playwright" Version="1.55.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.55.0
                    
#r "nuget: Microsoft.Playwright, 1.55.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.55.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.55.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Playwright&version=1.55.0
                    
Install as a Cake Tool

Playwright for .NET 🎭

NuGet version Join Discord

Linux macOS Windows
Chromium 140.0.7339.16
WebKit 26.0
Firefox 141.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

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

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

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
Tools, templates, and packages to accelerate building observable, production-ready apps
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 9 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 20, React 19, Vue 3.5, BFF with YARP, NextJs 15, 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)
AzureAD/microsoft-identity-web
Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
featurist/coypu
Intuitive, robust browser automation for .Net
YAFNET/YAFNET
🌐 YAF.NET - C# ASP.NET Forum
immisterio/Lampac
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
linkdotnet/Blog
A blog (engine) completely written in C# and Blazor. It aims to be a simple use and easy to extend platform. Blogposts are written in Markdown and are rendered to HTML. This gives all the flexibility needed to express yourself but also have an easy way of creating posts in the first place.
IEvangelist/blazorators
This project converts TypeScript type declarations into C# representations, and use C# source generators to expose automatic JavaScript interop functionality.
Version Downloads Last Updated
1.55.0 6,098 9/4/2025
1.55.0-beta-4 1,944 8/13/2025
1.55.0-beta-3 195 8/12/2025
1.55.0-beta-2 190 8/12/2025
1.55.0-beta-1 189 8/12/2025
1.54.0 269,608 7/22/2025
1.53.0 243,606 6/25/2025
1.52.0 804,381 4/30/2025
1.51.0 1,454,256 3/18/2025
1.50.0 1,022,677 2/3/2025
1.50.0-beta-2 85,151 11/25/2024
1.50.0-beta-1 1,248 11/25/2024
1.49.0 1,730,680 11/21/2024
1.48.0 1,152,400 10/21/2024
1.47.0 1,199,886 9/12/2024
1.46.0 1,026,474 8/12/2024
1.45.1 638,341 7/23/2024
1.45.0 511,586 7/3/2024
1.44.0 2,328,568 5/17/2024
1.43.0 887,180 4/9/2024
1.42.0 965,611 3/7/2024
1.42.0-beta-3 13,685 2/13/2024
1.42.0-beta-2 13,954 2/8/2024
1.42.0-beta-1 2,545 2/7/2024
1.41.2 1,253,094 1/24/2024
1.41.1 218,667 1/18/2024
1.41.0 198,143 1/17/2024
1.40.0 1,323,282 11/21/2023
1.39.0 662,060 10/16/2023
1.38.0 486,716 9/19/2023
1.37.1 498,871 8/16/2023
1.37.0 95,507 8/14/2023
1.36.0 768,619 7/14/2023
1.36.0-beta-1 9,937 6/29/2023
1.35.0 702,953 6/13/2023
1.34.0 340,105 5/26/2023
1.33.0 433,647 5/3/2023
1.33.0-beta-1 4,138 5/4/2023
1.32.0 785,616 3/27/2023
1.31.1 460,761 2/27/2023
1.31.0 111,319 2/21/2023
1.31.0-beta-1 18,555 1/27/2023
1.30.0 583,915 1/25/2023
1.29.0 415,630 1/4/2023
1.28.0 705,889 11/16/2022
1.27.2 1,116,869 10/27/2022
1.27.1 647,109 10/12/2022
1.27.0 67,163 10/8/2022
1.26.0 166,247 9/20/2022
1.25.0 480,455 8/15/2022
1.25.0-next-2 2,982 8/22/2022
1.25.0-next-1 3,773 8/12/2022
1.24.1 198,481 7/28/2022
1.24.0 64,963 7/22/2022
1.23.0 169,890 7/1/2022
1.23.0-next-4 3,191 7/18/2022
1.23.0-next-3 2,982 7/13/2022
1.23.0-next-2 3,235 7/13/2022
1.23.0-next-1 2,946 6/30/2022
1.22.0 674,209 5/13/2022
1.21.0 225,771 4/13/2022
1.20.2 574,514 3/23/2022
1.20.1 62,973 3/16/2022
1.20.0 24,722 3/15/2022
1.20.0-next-1 6,044 3/2/2022
1.19.1 170,376 2/25/2022
1.19.0 184,651 2/16/2022
1.18.1 83,835 2/1/2022
1.18.0 176,390 1/20/2022
1.17.3 228,324 12/15/2021
1.17.2 112,460 12/3/2021
1.17.1 30,160 11/30/2021
1.17.0 104,869 11/19/2021
1.17.0-rc1 4,287 11/19/2021
1.16.1 141,793 10/29/2021
1.16.0 19,551 10/21/2021
1.15.4 72,570 10/5/2021
1.15.3 6,288 10/3/2021
1.15.2 3,368 10/1/2021
1.15.1 3,727 9/30/2021
1.15.0 14,719 9/28/2021
1.14.1 60,945 8/24/2021
1.14.0 42,092 8/14/2021
1.13.0 48,745 7/21/2021
1.13.0-next-1 10,270 6/16/2021
1.12.2 39,815 6/14/2021
1.12.1 24,608 6/9/2021
1.12.0 22,063 6/9/2021
1.12.0-alpha-7 2,396 6/7/2021
1.12.0-alpha-5 2,194 6/6/2021
1.12.0-alpha-4 2,082 6/5/2021
1.12.0-alpha-3 2,073 6/5/2021
1.12.0-alpha-2 3,042 6/5/2021
1.11.1-alpha-2 3,452 5/27/2021
1.11.1-alpha 2,425 5/21/2021
1.11.0-alpha 2,508 5/21/2021