Soenneker.Playwrights.Extensions.TestPages
4.0.112
Prefix Reserved
dotnet add package Soenneker.Playwrights.Extensions.TestPages --version 4.0.112
NuGet\Install-Package Soenneker.Playwrights.Extensions.TestPages -Version 4.0.112
<PackageReference Include="Soenneker.Playwrights.Extensions.TestPages" Version="4.0.112" />
<PackageVersion Include="Soenneker.Playwrights.Extensions.TestPages" Version="4.0.112" />
<PackageReference Include="Soenneker.Playwrights.Extensions.TestPages" />
paket add Soenneker.Playwrights.Extensions.TestPages --version 4.0.112
#r "nuget: Soenneker.Playwrights.Extensions.TestPages, 4.0.112"
#:package Soenneker.Playwrights.Extensions.TestPages@4.0.112
#addin nuget:?package=Soenneker.Playwrights.Extensions.TestPages&version=4.0.112
#tool nuget:?package=Soenneker.Playwrights.Extensions.TestPages&version=4.0.112
Soenneker.Playwrights.Extensions.TestPages
Small Playwright helpers for navigating pages in browser tests, waiting for a page-specific ready element, and running assertions.
Installation
dotnet add package Soenneker.Playwrights.Extensions.TestPages
Usage
using Microsoft.Playwright;
using Soenneker.Playwrights.Extensions.TestPages;
await page.GotoAndWaitForReady(
"https://localhost:5001/account",
static page => page.GetByRole(AriaRole.Heading, new() { Name = "Account" }),
expectedTitle: "Account");
OpenPage joins a base URL and route, waits for DOMContentLoaded, and then invokes your assertion. The overload with a ready-locator factory also waits for that locator to become visible.
await page.OpenPage(
"https://localhost:5001",
"/settings",
static page => page.GetByTestId("settings-form"),
async page =>
{
await Assertions.Expect(page.GetByLabel("Email notifications"))
.ToBeCheckedAsync();
});
Use GetRouteUrl when you only need the same base URL/route joining behavior:
string url = "https://localhost:5001/".GetRouteUrl("/orders");
// https://localhost:5001/orders
VisibleMenu() returns the last visible element with role="menu", which is useful when a page keeps hidden menu instances in the DOM.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Microsoft.Playwright (>= 1.64.1)
- Soenneker.Extensions.String (>= 4.0.799)
- Soenneker.Extensions.Task (>= 4.0.140)
- Soenneker.Extensions.ValueTask (>= 4.0.133)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.112 | 8 | 10/22/2026 |
| 4.0.111 | 53 | 10/21/2026 |
| 4.0.110 | 82 | 10/15/2026 |
| 4.0.109 | 84 | 10/14/2026 |
| 4.0.108 | 84 | 10/14/2026 |
| 4.0.107 | 82 | 10/14/2026 |
| 4.0.106 | 85 | 10/14/2026 |
| 4.0.100 | 81 | 10/13/2026 |
| 4.0.99 | 83 | 10/12/2026 |
| 4.0.96 | 87 | 10/12/2026 |
| 4.0.95 | 84 | 10/11/2026 |
| 4.0.94 | 85 | 10/11/2026 |
| 4.0.93 | 85 | 10/11/2026 |
| 4.0.92 | 91 | 10/11/2026 |
| 4.0.91 | 98 | 9/30/2026 |
| 4.0.90 | 99 | 9/25/2026 |
| 4.0.89 | 97 | 9/25/2026 |
| 4.0.88 | 95 | 9/24/2026 |
| 4.0.86 | 92 | 9/24/2026 |
| 4.0.85 | 123 | 9/16/2026 |
Merge pull request #228 from soenneker/renovate/microsoft.playwright-1.x
Update dependency Microsoft.Playwright to 1.64.1