Skip to content
项目

microsoft/playwright-dotnet

在 GitHub 查看

关于

Playwright 测试与自动化库的 .NET 版本。

开发工具

这些数字如何统计

实测星标增长

24小时
+3
7天
+3
15天
+5
1个月
+11

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Playwright for .NET 🎭

NuGet version Join Discord

Linux macOS Windows
Chromium 159.0.8154.33 ✅ ✅ ✅
WebKit 27.2 ✅ ✅ ✅
Firefox 160.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

探索相关项目

加载中…