Install
dotnet add package Nullean.Snapshots.Browser --version 0.12.2
| Product | Versions |
|---|---|
| .NET |
README
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
Changes from Previous Version
v0.12.1v0.12.2
Added Frameworks
net11.0
Added Dependencies
Nullean.Snapshots.Images(net11.0)
Nullean.Snapshots(net11.0)
Nullean.Cdp(net11.0)
Nullean.Cdp.Journeys(net11.0)
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.