Forum Discussion

Madhi's avatar
Madhi
Contributor
15 years ago

Error Handling

I need to verify if a error window pops up during my script is being executed.  This window will appear invariantly anytime.  There may not be a error log as well.  What is the event I should append this script to.

  • Hi Madhi,





    If you know the exact actions of your script after which an error window can appear, use the WaitWindow method. If you do not, you can set up an event handling routine for the OnUnexpectedWindow event. To learn what windows are treated as unexpected by TestComplete, see the 'Handling Unexpected Windows' help topic.