Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Below mentioned are action keywords along with their example usage.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

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.

...