puppeteer/new-docs/puppeteer.protocol.page.handlejavascriptdialogrequest.md

20 lines
881 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; [Protocol](./puppeteer.protocol.md) &gt; [Page](./puppeteer.protocol.page.md) &gt; [HandleJavaScriptDialogRequest](./puppeteer.protocol.page.handlejavascriptdialogrequest.md)
## Protocol.Page.HandleJavaScriptDialogRequest interface
<b>Signature:</b>
```typescript
export interface HandleJavaScriptDialogRequest
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [accept](./puppeteer.protocol.page.handlejavascriptdialogrequest.accept.md) | boolean | Whether to accept or dismiss the dialog. |
| [promptText](./puppeteer.protocol.page.handlejavascriptdialogrequest.prompttext.md) | string | The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog. |