Forum Discussion
Hi,
Refer, for example, to https://community.smartbear.com/t5/TestComplete-General-Discussions/Unable-to-handle-the-error-using-the-script-quot-Unable-to-find/td-p/170316 for the explanation of the difference between .WinFormsObject() and .WaitWinFormsObject().
In your case you need to correct the following:
a) Check/wait for the alert box to appear using .WaitXXX() call;
b) Check if alert box exists by checking its .Exists property;
c) Optionally, if needed, you may check if alert box is visible on screen (.Visible property);
d) Proceed as required according to the above verification result.
- tristaanogre6 years agoEsteemed Contributor
What AlexKaras said. ;)
Basically, when looking for ANY object that may or may not be exist and there's no guarentee of it, you should be using the appropriate WaitNNN commands to do so. - mcaffrey6 years agoNew Contributor
I ended up using this solution before seeing your reply, and it worked. Thank you.
Related Content
- 5 years agoCapricornus
- 10 months agoguozhenc
Recent Discussions
- 3 days agoMW_Didata