Forum Discussion
AlexKaras
Champion Level 3
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.
mcaffrey
6 years agoNew Contributor
I ended up using this solution before seeing your reply, and it worked. Thank you.
Related Content
- 4 years agoCapricornus