Alert Class
Alert window management
Handles regular alerts, prompts, and confirms.
Constructor
Item Index
Methods
_requestJSON
(
private
-
method
-
path
-
[body]
Performs a context dependent JSON request for the current session. The result is parsed for errors.
Returns:
:
accept
()
Accepts the currently displayed alert dialog. Usually, this is equivalent to clicking on the 'OK' button in the dialog.
dismiss
()
Dismisses the currently displayed alert dialog. For confirm() and prompt() dialogs, this is equivalent to clicking the 'Cancel' button. For alert() dialogs, this is equivalent to clicking the 'OK' button.
Note: Never use this with an alert. Use accept() instead.
getText
()
String
Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog