Skip to content

Commit

Permalink
add alertText example
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius OLAR committed May 6, 2015
1 parent 20b07fb commit 9e9c3f4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/protocol/alertText.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
*
* Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog.
*
* <example>
:alertText.js
// close a dialog box if is opened
client.alertText( function( err, res ) {
if ( res != null ) {
this.alertDismiss()
}
});
* </example>
*
* @param {String=} text Keystrokes to send to the prompt() dialog.
* @returns {String} The text of the currently displayed alert.
* @callbackParameter error, response
Expand Down

0 comments on commit 9e9c3f4

Please sign in to comment.