Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/microsoft/playwright-dotnet
.NET version of the Playwright testing and automation library.
https://github.com/microsoft/playwright-dotnet
chrome chromium csharp firefox playwright webkit
Last synced: 4 days ago
JSON representation
.NET version of the Playwright testing and automation library.
- Host: GitHub
- URL: https://github.com/microsoft/playwright-dotnet
- Owner: microsoft
- License: mit
- Created: 2020-01-22T12:52:16.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T15:00:55.000Z (3 months ago)
- Last Synced: 2024-10-29T14:54:07.650Z (3 months ago)
- Topics: chrome, chromium, csharp, firefox, playwright, webkit
- Language: C#
- Homepage: https://playwright.dev/dotnet/
- Size: 210 MB
- Stars: 2,478
- Watchers: 54
- Forks: 236
- Open Issues: 46
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
- Support: SUPPORT.md
Awesome Lists containing this project
- awesome-playwright - playwright-dotnet - Official Playwright port to .NET. (Language Support)
README
# Playwright for .NET ðŸŽ
[![NuGet version](https://img.shields.io/nuget/v/Microsoft.Playwright?color=%2345ba4b)](https://www.nuget.org/packages/Microsoft.Playwright) [![Join Discord](https://img.shields.io/badge/join-discord-infomational)](https://aka.ms/playwright/discord)| | Linux | macOS | Windows |
| :--- | :---: | :---: | :---: |
| Chromium 131.0.6778.33 | ✅ | ✅ | ✅ |
| WebKit 18.2 | ✅ | ✅ | ✅ |
| Firefox 132.0 | ✅ | ✅ | ✅ |Playwright for .NET is the official language port of [Playwright](https://playwright.dev), the library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) 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](https://playwright.dev/dotnet/docs/intro)
## API Reference
[https://playwright.dev/dotnet/docs/api/class-playwright](https://playwright.dev/dotnet/docs/api/class-playwright)```cs
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](https://playwright.dev) is also available in
- [TypeScript](https://playwright.dev/docs/intro),
- [Python](https://playwright.dev/python/docs/intro),
- [Java](https://playwright.dev/java/docs/intro).