Table of Contents

Class CdpPageTarget

Namespace
PuppeteerSharp.Cdp
Assembly
PuppeteerSharp.dll

Page target.

public class CdpPageTarget : CdpTarget, ITarget
Inheritance
CdpPageTarget
Implements
Derived

Methods

AsPageAsync()

Forcefully creates a page for a target of any type. It is useful if you want to handle a CDP target of type other as a page. If you deal with a regular page target, use PageAsync().

public override Task<IPage> AsPageAsync()

Returns

Task<IPage>

A task that returns a IPage.

CheckIfInitialized()

Check is the target is not initialized.

protected override void CheckIfInitialized()

PageAsync()

Returns the IPage associated with the target. If the target is not "page", "webview" or "background_page" returns null.

public override Task<IPage> PageAsync()

Returns

Task<IPage>

a task that returns a IPage.