Webtest WebTest GitHub Home

Extension Step prompt

Description

Provides the ability to set expectations in relation to user responses to JavaScript Prompt Dialog boxes. Must be nested within the expectDialogs step.

Parameters

text
Required? yes
The text value to verify against.
description
Required? no
The description of this test step.
regex
Required? no, default is 'false'
Specifies whether the text value represents a regular expression.
response
Required? no, default is true
simulate user response: ignored for alerts; converted to boolean for confirms - "OK" (true) or "Cancel" (false); contains typed text for prompts.
saveProperty
Required? no
The name of the property in which to store the dialog text for later checking with "verifyProperty". Must not be set if text is also set.
savePropertyType
Required? no, default is the "defaultPropertyType" as specified in the "config" element is used.
The type of the property in which to store the dialog text for later checking. Either "ant" or "dynamic". Ignored if saveProperty is not set.