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>
Â
Action | Parameters | Example Usage |
---|---|---|
alertOk
To click OK button on confirmation window. | Â | Example :
Clicks on the Ok button on the confirmation window of the alert. |
alertCancel
To click Cancel button on confirmation window. | Â | Example :
Clicks on the Cancel button on the confirmation window of thw alert. |
copyAlertText
To store the text displayed on the popup in variable for future use. |  | Example :
Copies the text available on alert & stores it in variable bqVariable. |
Â