How to wait for an object exists for till custom timeout?
Hi Guys,
It have been a while now using TestComplete over QTP, but still am struggling to find the best ways to wait for an object exists.
Well, The exists function does the job but not perfectly, becuase it has to wait till the time we have setup globally, in the project settings.
the main issue is TestObject.Exists (does not accepts timeout).
Someone from the community friend have suggested me to use "WaitProperty", but the fact is WaitProperty can not be used on the objects which are not available. (or disposed/proxy objects)
My requirement is I want to move ahead as soon as a specific Window say "mywin" gets disappear (sometime this window take 1 sec, sometime 10 or sometimes even more)
In this situation I cant even use "exists" function on "mywin" window object in loop, becuase as soon as this window will get disapear, TestComplete will wait for 30 sec (global time given in the settings)
A simple question to TC dev/design team, what is the harm in extending .exists function to accept timeout in sec/millisec ?
nevertheless, guys please help me find out the workaround.
Thanks,
Manish Bansal