Skip to content

Testing with Bqurious > Actions

Alert Handling

Alert Handling keywords are helpful in performing actions on an alert box.

Suppose you wish to click ok on an alert box & execute the further steps.

Structure :

launchApp <parameter>

<further steps that lead to the alert box>

alertOk

<further steps>

ActionParametersExample Usage
alertOk Web, Mobile


---

To click OK button on confirmation window.
Example :
alertOk
Clicks on the Ok button on the confirmation window of the alert.
alertCancel Web, Mobile


---

To click Cancel button on confirmation window.
Example :
alertCancel
Clicks on the Cancel button on the confirmation window of thw alert.
copyAlertText Web, Mobile


---

To store the text displayed on the popup in variable for future use.
Example :
copyAlertText : <Variable Name : bqVariable>
Copies the textavailable on alert & stores it in variable bqVariable.