CdpDialog
Namespace: PuppeteerSharp.Cdp
public class CdpDialog : DialogDialog objects are dispatched by page via the ‘dialog’ event.
Example
An example of using Dialog class:
Page.Dialog += async (sender, e) =>{ await e.Dialog.Accept();}await Page.EvaluateExpressionAsync("alert('yo');");Constructors
Section titled “Constructors”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. |
Made with love by Dario Kondratiuk