Sometimes you have a web page that uses the following types of alert box:

alert('some message');

or

confirm("Press a button!");

(see http://www.w3schools.com/jsref/met_win_confirm.asp or http://www.w3schools.com/jsref/met_win_alert.asp)

When you record such a web page, Rapise will automatically record one of the following sequences:

a) For an Alert Box

Navigator.DoCheckAlert(msg)

https://rapisedoc.inflectra.com/Libraries/Navigator/#DoCheckAlert

Waits until browser alert with a given text. Wait timeout is 10 seconds.

b) For Prompt

Navigator.DoSetExpectedPromptResult(expectedRes)

https://rapisedoc.inflectra.com/Libraries/Navigator/#DoSetExpectedPromptResult

Navigator.DoCheckPrompt(msg)

https://rapisedoc.inflectra.com/Libraries/Navigator/#DoCheckPrompt

Waits until browser prompt with a given text. Wait timeout is 10 seconds.

c) For a Confirm Box

Navigator.DoSetExpectedConfirmResult(expectedRes)

https://rapisedoc.inflectra.com/Libraries/Navigator/#DoSetExpectedConfirmResult

Navigator.DoCheckConfirmation(msg)

https://rapisedoc.inflectra.com/Libraries/Navigator/#DoCheckConfirmation

Waits until browser confirmation with a given text. Wait timeout is 10 seconds.