5.3.1.4. Interact with Alert/Prompt/Confirmation
Prev | 5.3.1. Actions that execute behavior - HTML toolkit | Next

#### 5.3.1.4. Interact with Alert/Prompt/Confirmation

Interact with dialog

- Use this action to interact with (accept or dismiss) a prompt, alert or confirmation.

  Alerts, prompts and confirmations are not shown during test execution, but they must still be handled in the test. You must use the actions to deal with the prompt, alert or confirmation just before the item appears. The actions are designed to deal with the next prompt, alert or confirmation that appears and not while it is already open.

  This action will execute the selected type of interaction which you can set by using Select Interaction with dialog.

  You cannot use this action without executing the Select Interaction with dialog right before this action.

Select Interaction with dialog

- Use this action to select the desired type of interaction with a prompt, alert or confirmation.

  The behavior you specify for interacting with one alert, prompt or confirmation will be taken as default for the next one. To avoid confusion in your tests, we recommend explicitly dealing with each prompt, alert or confirmation separately, even if the action for two consecutive ones is the same.

  Use this action right before Interact with dialog.

- Parameters:

  - Type