puppeteer/new-docs/puppeteer.dialog._constructor_.md

24 lines
696 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Dialog](./puppeteer.dialog.md) &gt; [(constructor)](./puppeteer.dialog._constructor_.md)
## Dialog.(constructor)
Constructs a new instance of the `Dialog` class
<b>Signature:</b>
```typescript
constructor(client: CDPSession, type: DialogType, message: string, defaultValue?: string);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| client | [CDPSession](./puppeteer.cdpsession.md) | |
| type | [DialogType](./puppeteer.dialogtype.md) | |
| message | string | |
| defaultValue | string | |