PuppeteerSharp

PuppeteerSharp

www.puppeteersharp.com

4

About this website

PuppeteerSharp is a .NET port of the official Node.js Puppeteer API, created and maintained by Dario Kondratiuk, providing browser automation capabilities for C# and .NET developers to programmatically control Chrome and Firefox browsers with a high-level, fluent API. The library is installed as a NuGet package and targets .NET Standard 2.0 and .NET 10, ensuring compatibility with .NET Framework 4.6.1 and later, .NET Core, and modern .NET releases across Windows, macOS, and Linux. Core functionality includes launching browser instances in both headless and headful modes, creating and managing multiple pages and browser contexts, navigating to URLs with wait conditions, executing JavaScript within page contexts, intercepting and modifying network requests, and emulating mobile devices with custom viewport and user agent settings. The screenshots and PDFs feature generates pixel-perfect output with support for full-page capture, custom viewport dimensions, element clipping, and detailed PDF formatting options including margins, headers, footers, and scale. The Locators API provides smart element location with built-in auto-retry and auto-wait mechanisms, configurable element visibility checks, timeout settings, and viewport intersection preconditions through a fluent method chain. Dual protocol support offers first-class integration with both the Chrome DevTools Protocol for low-level browser control and WebDriver BiDi for standards-based automation, giving developers flexibility to choose the appropriate protocol per use case. The project is open source on GitHub under the hardkoded organization, with an active Slack community channel, Stack Overflow tag, and GitHub Sponsors program offering priority support for commercial users.

Statistics

4
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!