Precept.Screenplay 0.11.0

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

Precept.Screenplay

The screenplay pattern for Precept. An actor holds the abilities they were granted, performs interactions against targets, and is asked questions about what they can see.

dotnet add package Precept.Screenplay
using Precept.Screenplay;
using Precept.Screenplay.Web;

var alice = await Actor.Named("alice").WhoCanBrowseTheWebAsync();

await alice.AttemptsToAsync(
    Navigate.To("/login"),
    Enter.The("ada@example.com").Into(SignInPage.Email),
    Enter.TheSecret(password).Into(SignInPage.Password),
    Click.On(SignInPage.Submit));

await Assert.That(alice.Sees(Dashboard.Greeting)).ToHaveTextAsync("Hello, Ada");

There is nothing to register. An actor is created inside a test and belongs to it. The package brings Precept.Web with it, which is what the browser interactions run through. A suite that drives a browser through page objects installs Precept.Web on its own and is offered none of this.

Screenplay replaces nothing. Page objects and screenplay can share a project, and actor.Sees(target) returns a Playwright locator, so the assertions are the same ones Precept.Web already has.


Part of Precept, a .NET 10 test framework built on Microsoft.Testing.Platform. Full documentation: screenplay · interactions · questions and assertions · two users at once · with Gherkin

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
0.11.0 0 9/15/2026
0.10.0 56 9/10/2026
0.8.0 53 9/10/2026
0.7.0 63 9/9/2026
0.6.0 85 9/2/2026
0.5.1 84 9/2/2026
0.5.0 79 9/1/2026