Nullean.Snapshots.Browser
0.12.1
dotnet add package Nullean.Snapshots.Browser --version 0.12.1
NuGet\Install-Package Nullean.Snapshots.Browser -Version 0.12.1
<PackageReference Include="Nullean.Snapshots.Browser" Version="0.12.1" />
<PackageVersion Include="Nullean.Snapshots.Browser" Version="0.12.1" />
<PackageReference Include="Nullean.Snapshots.Browser" />
paket add Nullean.Snapshots.Browser --version 0.12.1
#r "nuget: Nullean.Snapshots.Browser, 0.12.1"
#:package Nullean.Snapshots.Browser@0.12.1
#addin nuget:?package=Nullean.Snapshots.Browser&version=0.12.1
#tool nuget:?package=Nullean.Snapshots.Browser&version=0.12.1
Nullean.Snapshots.Browser

Browser journeys for Nullean.Snapshots: agent-browser style journeys run in Chrome with Nullean.Cdp, their transcripts, accessibility trees and reads compared as trees.
Install
dotnet add package Nullean.Snapshots.Browser
Quick start
A journey is one command per line; reads (snapshot, get, is) become transcript sections:
open index.html
find role button click --name "Add red lamp"
snapshot -c -s "#results"
get text #count
Run it and compare, without a test framework:
using Nullean.Snapshots.Browser;
public static class ShopJourney
{
public static async Task CheckAsync()
{
var options = new JourneySnapshotOptions { BaseUrl = new Uri("http://localhost:5000/") };
var transcript = await JourneySnapshot.RunAsync("journeys/shop.journey", options);
var result = JourneySnapshot.Match(transcript); // .snapshots/journeys/shop.verified.journey
if (!result.Passed)
throw new InvalidOperationException(result.FailureMessage);
}
}
- In AwesomeAssertions tests use
Nullean.Snapshots.Browser.Assertions(JourneyTest.RunAsync); for a suite in a console tool,Nullean.Snapshots.Browser.Console; from the command line,snap journey run. - A live site:
Transcript = TranscriptMode.OffandReadOnly = truecompare nothing and send no writes, andJourneySnapshot.SkipReasonsays when a journey does not apply. - Two sites:
JourneySnapshot.CompareAsyncruns a journey against a baseline and a target and fails only on differences no rule in its.differencesfile expects.screenshotsteps are compared too, with a diff image.
Learn more
- Documentation: https://snapshots.nullean.net
- Browser journeys: https://snapshots.nullean.net/formats/browser/
- Expected differences: https://snapshots.nullean.net/workflow/expected-differences/
- Source and issues: https://github.com/nullean/snapshots
| 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
- Nullean.Cdp (>= 0.11.1)
- Nullean.Cdp.Journeys (>= 0.11.1)
- Nullean.Snapshots (>= 0.12.1)
- Nullean.Snapshots.Images (>= 0.12.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Nullean.Snapshots.Browser:
| Package | Downloads |
|---|---|
|
Nullean.Snapshots.Browser.Assertions
AwesomeAssertions extensions for Nullean.Snapshots.Browser: MatchJourneySnapshot and MatchAriaSnapshot. |
|
|
Nullean.Snapshots.Browser.Console
Runs a suite of journeys from the console with streamed results, grouped skips and readable failures, for snap journey run and for any tool that wants the same output. |
GitHub repositories
This package is not used by any popular GitHub repositories.