Precept.Web 0.10.0

dotnet add package Precept.Web --version 0.10.0
                    
NuGet\Install-Package Precept.Web -Version 0.10.0
                    
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="Precept.Web" Version="0.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Precept.Web" Version="0.10.0" />
                    
Directory.Packages.props
<PackageReference Include="Precept.Web" />
                    
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 Precept.Web --version 0.10.0
                    
#r "nuget: Precept.Web, 0.10.0"
                    
#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 Precept.Web@0.10.0
                    
#: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=Precept.Web&version=0.10.0
                    
Install as a Cake Addin
#tool nuget:?package=Precept.Web&version=0.10.0
                    
Install as a Cake Tool

Precept.Web

Browser automation for Precept, built on Playwright: per-scenario isolation and automatic screenshot, trace and video capture on failure.

dotnet add package Precept.Web
services.AddPreceptWeb();
var page = await Browser.PageAsync();

await Assert.That(page).ToHaveTitleAsync(new Regex("Checkout"));
await Assert.That(page.GetByRole(AriaRole.Alert)).Not.ToBeVisibleAsync();
await Assert.That(page.GetByTestId("total"), "the basket total")
            .Within(TimeSpan.FromSeconds(10))
            .ToHaveTextAsync("£42.00");

Playwright's web-first assertions are mapped onto Precept's sentence, and the retrying stays Playwright's — Precept never polls on top of it — so these need no wait in front of them. A failure keeps Playwright's call log, which is the part that says what the page actually looked like on each attempt.

A test can hold more than one session — Browser.StartAsync("alice") alongside Browser.StartAsync("bob"), two signed-in users in one scenario sharing a browser and nothing else — and a suite can sign in once for the whole run rather than once per test.

The module needs Playwright's browsers on the machine, and installs the one it is configured for the first time a launch finds nothing to drive. To install by hand instead, after the first build:

pwsh bin/Debug/net10.0/playwright.ps1 install chromium

Part of Precept, a .NET 10 test automation framework. Full documentation: assertions on a page · page objects · installing browsers · signing in once · artifacts and logging

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 (1)

Showing the top 1 NuGet packages that depend on Precept.Web:

Package Downloads
Precept.Screenplay

The screenplay pattern for Precept: actors, abilities, interactions and questions, with the browser bindings that carry them out through Playwright.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.10.0 55 9/10/2026
0.8.0 48 9/10/2026
0.7.0 47 9/9/2026
0.6.0 98 9/2/2026
0.5.1 100 9/2/2026
0.5.0 97 9/1/2026
0.4.1 109 8/16/2026
0.4.0 111 8/16/2026
0.3.0 98 8/15/2026
0.2.0 98 8/15/2026
0.1.3 102 8/13/2026
0.1.2 101 8/13/2026
0.1.1 99 8/13/2026
0.1.0 103 8/12/2026