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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Playwrights.Extensions.TestPages" Version="4.0.112" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Playwrights.Extensions.TestPages" Version="4.0.112" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Playwrights.Extensions.TestPages" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Playwrights.Extensions.TestPages --version 4.0.112
                    
#r "nuget: Soenneker.Playwrights.Extensions.TestPages, 4.0.112"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Playwrights.Extensions.TestPages@4.0.112
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Playwrights.Extensions.TestPages&version=4.0.112
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Playwrights.Extensions.TestPages&version=4.0.112
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Merge pull request #228 from soenneker/renovate/microsoft.playwright-1.x

Update dependency Microsoft.Playwright to 1.64.1