VerifyDefaultButton Method

Class

DialogBox.

Action

Verifies the default button on a dialog box.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

dialogbox.VerifyDefaultButton(wWindow[, nTimeout])
Variable Description
wWindow The button you expect to be the default. WINDOW.
nTimeout Optional: The number of seconds to wait for the expected value to be achieved. NUMBER.

Notes

If a timeout is specified with the nTimeout parameter, Silk Test Classic calls VerifyDefaultButton() until the condition is verified or the timeout is reached. The time between checks is the value of the window retry interval Agent option (OPT_WINDOW_RETRY). If the verification fails, an exception is thrown.

Example

MyDialog.VerifyDefaultButton(MyDialog.OK)