Webtest WebTest GitHub Home

Extension Step verifyNoDialogs

Description

Used in conjunction with the expectDialog and expectDialogs steps when dealing with JavaScript Dialog boxes. This step checks that all user responses expected were in fact "consumed" by JavaScript.

The <verifyNoDialogs> step is used after clicking on a link or button which invokes some JavaScript that uses dialogs (Alert, Confirm or Prompt dialogs). It is used in conjunction with the expectDialogs step which sets up dialog expectations prior to clicking the link or button. Invoking this step after the click request allows you to check that all expected responses were in fact used by the JavaScript.

Parameters

description
Required? no
The description of this test step.

Details

See the expectDialogs step for examples.