Skip to content

CdpDialog

Namespace: PuppeteerSharp.Cdp

public class CdpDialog : Dialog

Dialog objects are dispatched by page via the ‘dialog’ event.

Inheritance: object → Dialog

Example

An example of using Dialog class:

Page.Dialog += async (sender, e) =>
{
await e.Dialog.Accept();
}
await Page.EvaluateExpressionAsync("alert('yo');");

View source

CdpDialog(CDPSession, DialogType, string, string)

Section titled “CdpDialog(CDPSession, DialogType, string, string)”
public CdpDialog(CDPSession client, DialogType type, string message, string defaultValue)

Initializes a new instance of the CdpDialog class.

Parameters

Name Type Description
client CDPSession Client.
type DialogType Type.
message string Message.
defaultValue string Default value.

View source

Made with love by Dario Kondratiuk