| Linux | macOS | Windows | |
|---|---|---|---|
| Chromium 151.0.7922.34 | ✅ | ✅ | ✅ |
| WebKit 26.5 | ✅ | ✅ | ✅ |
| Firefox 153.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.
https://playwright.dev/dotnet/docs/intro
https://playwright.dev/dotnet/docs/api/class-playwright
usingSystem.Threading.Tasks;usingMicrosoft.Playwright;usingvarplaywright=awaitPlaywright.CreateAsync();awaitusingvarbrowser=awaitplaywright.Chromium.LaunchAsync(new(){Headless=false});varpage=awaitbrowser.NewPageAsync();awaitpage.GotoAsync("https://playwright.dev/dotnet");awaitpage.ScreenshotAsync(new(){Path="screenshot.png"});More comfortable in another programming language? Playwright is also available in