WaitProperty not detecting that property is not at expected value
Hi all,
I have a WaitProperty step in my keyword test, I am trying to check if a button is enabled or not before the test proceeds, so have selected the button as the object and "Enabled" property as the value to check, with the Property value set to True.
Issue is that when I run the test, with the button disabled, the test does not stop on the WaitProperty operation, so appears to not be checking the Enabled status of the button. See screenshots for details
Waitproperty will not stop the script. It will just wait either te state got changed or till the time you specified. To make the script stop you need to add if statement after this wait to read the Last operation result and see if that wait statement failed or not.
Waiting for Object State Changes | TestComplete Documentation (smartbear.com)