I have created an OnUnexpectedWindow handler. The handler works fine, but in some cases I would like the script execution to stop. For this I use the Runner.Stop command.
This does not seem to work from the eventhandler. (it does work on other places in the test).
What am I doing wrong?
Our Support Team was unable to reproduce this problem.
Are you sure the Runner.Stop line is executed? Please set a break point at that line and see if the method is really called during script execution.
If the line is executed, but the script is not stopped, please let me know the version of TestComplete you are using (Help | About). Also, please send a sample script demonstrationg this problem (e.g. with Notepad), to our Support Team at email@example.com. Thanks in advance.