Forum Discussion

albertopasion's avatar
albertopasion
Occasional Contributor
13 years ago

Unexpected window

I'm running a script and have made a provision to trap an unexpected window.


Within the debugger, I can see that the script is going thru the GeneralEvents_OnUnexpectedWindow procedure.


Within the said procedure too I can also see the script closing the Unexpected window, then unexpected window closes but I error message "The operation cannot be completed due to an unexpected window."


Stop on Error is not checked.


Everything on the On Unexpected Window option section is also unchecked.


Not sure why the script terminates.  Please advise.


Thanks in advance.


Albert

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    On the test item itself, there are options to stop on error and stop on exception that actually will override what's in the overall project settings.  See the attached screenshot.



    See what those are set to and perhaps turn off one or both of those.