WaitForProperty Method (TestObject)

Action

Waits until the property specified by the 'propertyName' parameter gets the value specified by the 'expectedValue' parameter 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.WaitForProperty(propertyName, expectedValue, [timeout])
Variable Description
propertyName The name of the property to wait for. String.
expectedValue The value of the property to wait for. Object.
timeout Optional: The maximum wait time in milliseconds before the function times out. Integer.