Basics
Guides
API Reference
Basics
Guides
API Reference
[8:14] (extern: com.lehman.aussom.ADialog) extends: object
The dialog class wraps a browser dialog event (alert, confirm, prompt, or beforeunload). Instances are obtained via page.waitForDialog() or by registering an onDialog event handler on a page.
type ()
Returns the dialog type string: 'alert', 'confirm', 'prompt', or 'beforeunload'.
A string dialog type.message ()
Returns the message text displayed in the dialog.
A string with the dialog message.defaultValue ()
Returns the default value for prompt dialogs. Returns an empty string for alert and confirm dialogs.
A string default value.accept (string PromptText = "")
Accepts the dialog. For prompt dialogs the optional text is used as the input value; if empty the default value is used.
PromptText is an optional string value to enter into a prompt dialog.This object.dismiss ()
Dismisses the dialog (equivalent to clicking Cancel).
This object.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.