DenisMedvedev
9 years agoContributor
How to ‘Wait’ object ‘Right’?
We are using script tests and before working with element we are waiting element via it’s properties:
(obj.Exists == true && obj.VisibleOnScreen == true && obj.Visible == true && obj.Enabled == true)
In most cases it’s work, but sometimes we are getting error, something like ‘Testcomplete are not able to perform action with disabled element’ or warning ‘The action may be performed incorrectly, because the control is disabled.’
On the screenshots we see that window is opened, but our element is not displayed yet.
We use loops and “aqUtils.Delay(1000)” like workaround, but it’s hardcode and sometime doesn’t work.
So, question is how to deal with it?
I would be grateful for any help.
Thanks in advance
Denis
Did you try the WaitProperty method?