Forum Discussion
AlexeyK
Alumni
14 years agoIan,
To insert a delay, you can use the aqUtils.Delay(...) method. It pauses the test execution for the specified number of milliseconds. Also, I'd suggest that you try the WaitProperty(Property, Value, Timeout) method. It pauses the test until the property gets the needed value or until the timeout is over.
If YourButtonObject.WaitProperty("Enabled", True, 5000) Then
' Success
Else
' Error
End If
And like Robert said, you can find examples in this topic: Waiting for Object State Changes.