Skip to main content
net10.0net11.0

Browser journeys for Nullean.Snapshots: run agent-browser style journeys with Nullean.Cdp and compare their transcripts, accessibility trees and reads, as trees.

Published
Nov 14, 2026
9d ago
Total Downloads
3.7K
3,659

Install

dotnet add package Nullean.Snapshots.Browser --version 0.12.2
ProductVersions
.NET
net10.0net11.0

README

Nullean.Snapshots.Browser

snapshots.

Browser journeys for Nullean.Snapshots: agent-browser style journeys run in Chrome with Nullean.Cdp, their transcripts, accessibility trees and reads compared as trees.

NuGet

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.Off and ReadOnly = true compare nothing and send no writes, and JourneySnapshot.SkipReason says when a journey does not apply.
  • Two sites: JourneySnapshot.CompareAsync runs a journey against a baseline and a target and fails only on differences no rule in its .differences file expects. screenshot steps are compared too, with a diff image.

Learn more

Changes from Previous Version

v0.12.1v0.12.2
Added Frameworks
net11.0
Added Dependencies

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.