Skip to content

PuppeteerSharp.Cdp

API reference

Chrome DevTools Protocol browser and page implementation.

Type Summary
CdpBrowser Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
CdpBrowserContext Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
CdpCDPSession Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
CdpDevToolsTarget DevTools target.
CdpDialog Dialog objects are dispatched by page via the ‘dialog’ event.
CdpElementHandle Inherits from IJSHandle. It represents an in-page DOM element. ElementHandles can be created by QuerySelectorAsync(string) or QuerySelectorAllAsync(string).
CdpFrame Provides methods to interact with a single page frame in Chromium. One IPage instance might have multiple IFrame instances. At every point of time, page exposes its current frame tree via the MainFrame and ChildFrames properties. IFrame object’s lifecycle is controlled by three events, dispatched on the page object - FrameAttached - fires when the frame gets attached to the page. A Frame can be attached to the page only once - FrameNavigated - fired when the frame commits navigation to a different URL - FrameDetached - fired when the frame gets detached from the page. A Frame can be detached from the page only once.
CdpHttpRequest Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
CdpHttpResponse Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
CdpJSHandle Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
CdpKeyboard Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
CdpMouse Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
CdpOtherTarget Other target.
CdpPage Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
CdpPageTarget Page target.
CdpTarget Target.
CdpTouchscreen Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
CdpWebMcp Experimental WebMCP API. Requires Chrome 149+ with –enable-features=WebMCP flag.
CdpWebWorker The Worker class represents a WebWorker (https://developer.mozilla.org/en-US/docs/Web/API/WebWorkersAPI). The events WorkerCreated and WorkerDestroyed are emitted on the page object to signal the worker lifecycle.
CdpWorkerTarget Worker target.
Connection A connection handles the communication with a Chromium browser.
WebMcpAnnotation Tool annotations for a WebMCP tool.
WebMcpTool Represents a registered WebMCP tool available on the page.
WebMcpToolCall Represents a pending or completed WebMCP tool invocation call.
WebMcpToolCallResult Result of a WebMCP tool invocation.
WebMcpToolExecuteOptions Options for WebMcpToolExecuteOptions).
WebMcpToolsAddedEventArgs Event args for when WebMCP tools are added.
WebMcpToolsRemovedEventArgs Event args for when WebMCP tools are removed.
Type Summary
ICdpHandle CDP Specific handle info.
Type Summary
WebMcpInvocationStatus Represents the status of a WebMCP tool invocation.

Made with love by Dario Kondratiuk