alertText

Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog.

Usage

1
client.alertText([text]).then(callback);

Parameters

Param Type Details
text
optional
String Keystrokes to send to the prompt() dialog.

Example

alertText.js
1
2
3
4
5
6
// close a dialog box if is opened
client.alertText( function( err, res ) {
if ( res != null ) {
this.alertDismiss()
}
});