webalert » replyOK(text)
Description
This command automates the replying to a JavaScript
prompt dialog
with text
and then click on OK
prompt on the dialog. If the expected prompt dialog is not found, this command
will consider such as FAIL.
The text of the alert dialog, if present, will be saved to nexial.lastAlertText
, which can be retrieved after this
command is executed.