Skip to main content
Module

x/puppeteer_plus/mod.ts>Protocol.Page.JavascriptDialogOpeningEvent

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
interface Protocol.Page.JavascriptDialogOpeningEvent
import { type Protocol } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";
const { JavascriptDialogOpeningEvent } = Protocol.Page;

Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

Properties

url: string

Frame url.

message: string

Message that will be displayed by the dialog.

type: DialogType

Dialog type.

hasBrowserHandler: boolean

True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.

optional
defaultPrompt: string

Default dialog prompt.