Dialog
Utility class for handling dialogs
Constructor Summary
Public Constructor | ||
public |
constructor(client: Chrome | CRIConnection | CDPSession | Object, event: Object) |
Member Summary
Private Members | ||
private |
_client: Chrome | CRIConnection | CDPSession | Object |
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
Accepts this JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload). |
|
public |
Default dialog prompt |
|
public |
Dismisses this JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) |
|
public |
True iff browser is capable showing or acting on the given dialog. |
|
public |
Message that will be displayed by the dialog |
|
public |
|
|
public |
Dialog type |
|
public |
The URL of the Frame the dialog opened in |
Public Constructors
public constructor(client: Chrome | CRIConnection | CDPSession | Object, event: Object) source
Params:
Name | Type | Attribute | Description |
client | Chrome | CRIConnection | CDPSession | Object | ||
event | Object |
Private Members
private _client: Chrome | CRIConnection | CDPSession | Object source
Public Methods
public async accept(promptText: string): Promise<void> source
Accepts this JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
Params:
Name | Type | Attribute | Description |
promptText | string |
|
The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog |
public async dismiss(): Promise<void> source
Dismisses this JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload)