WaitForPropertyNotEquals Method (TestObject)

Class

TestObject.

Action

Waits until the specified property has a value that is different to the specified value or until the timeout is reached.If you don't explicitly pass a timeout using the optional timeout parameter, the timeout specified by the option OPT_WAIT_RESOLVE_OBJDEF will be used. An exception is thrown if the timeout is reached.

Syntax

testObject.WaitForPropertyNotEquals(propertyName, propertyValue, [timeout])
Variable Description
propertyName The name of the property. String.
propertyValue The value of the property to check against. Object.
timeout Optional: The maximum wait time in milliseconds. Integer.

Examples

The following example waits for a financial transaction to complete. The transaction is finished when a UI control no longer displays "Processing payment...".
control.WaitForPropertyNotEquals("Text", "Processing payment...", 10000)

Note: To get the entire list of the available properties for a control, use the GetPropertyList method.