Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/src/Dialog.ts>Dialog#accept

Headless Chrome Deno API
Latest
method Dialog.prototype.accept
import { Dialog } from "https://deno.land/x/pptr@1.2.0/src/Dialog.ts";

Parameters

optional
promptText: string
  • optional text that will be entered in the dialog prompt. Has no effect if the dialog's type is not prompt.

Returns

Promise<void>

A promise that resolves when the dialog has been accepted.