Forum Discussion
Wamboo
5 years agoCommunity Hero
In my opininion you need to wait a little longer with the click action.
If you use the .Exist method without any condition TestComplete waits only certain portion of time and then executiing next line of your script.
Try to use this function:
function waitForObj(obj, counter) { var counter = counter || 60; for (var i = 1; i <= counter; i++) { if (obj.Exists == false) { aqUtils.Delay(1000); } else { return true; //break; // or use just break break } } }
I know that this is JS but the code is simple so you can change it to VB if you want.
Related Content
Recent Discussions
- 2 hours agoSvetaG