externalAbsentModalDialog
Hierarchy
- ModalDialog
- AbsentModalDialog
Index
Constructors
Methods
Constructors
externalconstructor
Returns AbsentModalDialog
Methods
externalisPresent
Returns a promise that resolves to
truewhen a modal dialog has been handled, so either accepted or dismissed. Returnsfalsefor 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
Returns the message of the last modal dialog handled, or rejects the promise with a
LogicErrorwhen no modal dialogs have been observed yet.Returns Promise<string>
Message of the last handled dialog, or a
Promiserejected with aLogicErrorwhen no dialog has been handled yet.
externalstate
Returns
acceptedordismissedfor dialogs that have been handled, orabsentfor those that haven't been handled yet.Returns string
AbsentModalDialogis a null object representing aModalDialogthat hasn't appeared yet.Learn more
ModalDialog