Forum Discussion
Chris,
but the docs say that the method(property) is not available.
What do you mean? Which documentation topic says that?
Anyway, if the Enabled property is available for your button, you can use it in your tests. To delay your test execution until the button in your tested application changes its state, you can use the WaitProperty method or implement a loop.
The WaitProperty method pauses the test execution until the specified property becomes equal to the specified value. To call the WaitProperty method from a keyword test, you can use the Call Object Method operation.
On the Specify Object page of the Call Object Method operation wizard, you need to specify your button, on the Specify Method or Property page, you need to select the WaitProperty method, and on the Operation Parameters page, you need to set the WaitProperty method's parameters - the name of the property whose value you want to check and the value you need to wait for before continuing the test execution.
To implement a loop in your keyword test, you can use the While Loop operation. As the condition checked on each iteration, specify the needed button state. The loop will test that condition until it becomes true.
To learn more about how to pause a test until the object state changes, please see the Waiting For Object State Changes Help topic.
Please let us know if this information does not help or if you have additional questions.
Thank you.