.NET version of the Playwright testing and automation library.
Перейти к файлу
Max Schmitt ce4981b798
chore: roll Playwright to 1.47.0-beta-1726138322000 (#3004)
2024-09-12 18:47:48 +02:00
.azure-pipelines
.github chore: add Ubuntu 24.04 (noble) Docker image (#2983) 2024-08-12 17:06:36 +02:00
src chore: roll Playwright to 1.47.0-beta-1726138322000 (#3004) 2024-09-12 18:47:48 +02:00
utils/docker chore: add Ubuntu 24.04 (noble) Docker image (#2983) 2024-08-12 17:06:36 +02:00
.gitattributes
.gitignore
CONTRIBUTING.md
Directory.Build.props
LICENSE
README.md chore(roll): roll Playwright to v1.47.0 (#3000) 2024-09-09 15:52:34 +02:00
ROLLING.md
SECURITY.md
SUPPORT.md docs: add SUPPORT.md (#2991) 2024-08-28 11:14:31 -07:00
build.sh

README.md

Playwright for .NET 🎭

NuGet version Join Discord

Linux macOS Windows
Chromium 129.0.6668.29
WebKit 18.0
Firefox 130.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