Skip to content

Jint.Browser.Playwright

Jint.Browser.Playwright implements a focused subset of Microsoft.Playwright's public .NET interfaces directly over Jint.Browser.

It starts no browser, Node process, driver, or CDP connection. Operations run in the application process:

Use this package when your application needs Microsoft.Playwright-compatible abstractions. The direct Jint.Browser API exposes more of the browser model than this adapter currently maps, but it is not compatible with Playwright's interfaces. Prefer Jint.Browser when Playwright compatibility is not required.

View Jint.Browser.Playwright on NuGet.org

With using Jint.Browser.Playwright; in scope:

csharp
await using var browser = await JintPlaywright.BrowserType.LaunchAsync();
var page = await browser.NewPageAsync();

await page.SetContentAsync("<button id='save'>Save</button>");
await page.Locator("#save").ClickAsync();

The adapter is built against Microsoft.Playwright 1.62. It references Playwright for public API contracts while excluding its build assets, so Playwright's bundled Node runtime and browser driver are not copied into the consuming application.

This is an evolving compatibility layer, not a complete Playwright implementation. Unsupported members and non-default options fail explicitly. It does not render and cannot provide screenshots, PDF output, video, browser extensions, or native-browser behavior.