VerifyText Method (ComboBox)


ComboBox class.


Verifies the text in the text field in a combo box.


combobox.VerifyText(sText[, nTimeout])
Variable Description
sText The text expected in the combo box. STRING.
nTimeout Optional: The number of seconds to wait for the expected value to be achieved. NUMBER.


You use the VerifyText method to check whether a combo box has the expected text. If the combo box does not have the expected text, Silk Test Classic raises the exception E_VERIFY.

Calling this method is the same as calling the Verify function in the following manner:
Verify(window.GetText(), expected_value)

If a timeout is specified with the nTimeout parameter, Silk Test Classic calls VerifyText() 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.


MyDialog.ComboBox1.VerifyText("expected text")