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.
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.
Related Content
- 4 years agoCapricornus
- 2 years agomattb
Recent Discussions
- 3 hours agoSvetaG