Skip to main content

externalAbsentModalDialog

AbsentModalDialog is a null object representing a ModalDialog that hasn't appeared yet.

Learn more

Hierarchy

Index

Constructors

externalconstructor

Methods

externalisPresent

  • isPresent(): Promise<boolean>
  • Returns a promise that resolves to true when a modal dialog has been handled, so either accepted or dismissed. Returns false for dialogs that haven't been handled yet.

    Useful when a JavaScript modal dialog is generated after a delay, e.g. triggered by setTimeout.


    Returns Promise<boolean>

externalmessage

  • message(): Promise<string>
  • Returns the message of the last modal dialog handled, or rejects the promise with a LogicError when no modal dialogs have been observed yet.


    Returns Promise<string>

    Message of the last handled dialog, or a Promise rejected with a LogicError when no dialog has been handled yet.

externalstate

  • state(): string
  • Returns accepted or dismissed for dialogs that have been handled, or absent for those that haven't been handled yet.


    Returns string