alertText
Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog.
Usage
1 | browser.alertText([text]); |
Parameters
Param | Type | Details |
---|---|---|
text optional |
String | Keystrokes to send to the prompt() dialog. |
Example
1 | it('demonstrate the alertDismiss command', function () { |