Skip to main content
Nullean.Cdp package icon

Nullean.Cdp

v0.13.0Latest Stable
net10.0net11.0

A small, AOT-clean Chrome DevTools Protocol client: find and launch Chrome, drive pages, read the accessibility tree.

Published
Nov 17, 2026
6d ago
Total Downloads
4.8K
4,798

Install

dotnet add package Nullean.Cdp --version 0.13.0
ProductVersions
.NET
net10.0net11.0

README

Nullean.Cdp

Nullean.Cdp

A small Chrome DevTools Protocol client for .NET: find and launch Chrome, drive pages with agent-browser style locators, and read the accessibility tree. Native AOT and trim clean, with no dependencies beyond the BCL.

NuGet

Install

dotnet add package Nullean.Cdp

Quick start

using Nullean.Cdp;
using Nullean.Cdp.Accessibility;

await using var browser = await Browser.LaunchAsync();      // headless, temporary profile
await using var context = await browser.NewContextAsync();  // own cookies and storage
var page = await context.NewPageAsync();
await page.GotoAsync("http://localhost:5000/");

Console.Write(await page.SnapshotAsync(new AxSnapshotOptions { Compact = true, Selector = "main" }));
// - main
//   - heading "Fixture shop" [level=1]
//   - textbox "Search"
//   - checkbox "Only in stock" [checked=true]

Locators wait for their element and act like a user:

await page.Label("Search").FillAsync("lamp");
await page.Role("checkbox", "Only in stock").CheckAsync();
await page.Role("button", "Go").ClickAsync();         // waits for any navigation it starts
await page.Text("3 results").WaitAsync();

page.SendAsync(method, params) and browser.Connection reach any CDP command the library does not wrap.

Finding Chrome

CDP_CHROME, then CHROME_PATH, then the standard install locations for Chrome, Chrome for Testing, Chromium and Edge on each OS, then google-chrome, chromium and chrome on the PATH. When nothing is found, the error lists every place it looked.

Learn more

Changes from Previous Version

No structural changes between v0.12.0 and v0.13.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.