Unexpected Window Event Handler
I’m trying to set up my OnUnexpectedWindow event handler. I am following the exact steps that are shown in the following smartbear video:
https://support.smartbear.com/testcomplete/videos/dealing-with-unexpected-pop-ups/
my handler is doing what it is supposed to do (clicking a Yes button on the unexpected window which closes the window) but the test is not continuing from that point like it does in the video. It still fails with an unexpected window error even though the unexpected window no longer exists.
I have this theory as to why it might be failing but don't know what i can do to resolve it (if it is in fact the case).
Here is a screenshot of how my application looks with the unexpected window centered on the screen. The larger window in the background is my application
The event handler has three parameters: Sender, Window and LogParams
If I put a Log.Message(Window.Name) statement in the event handler, it logs the name of the application in the background into the results log
rather than the little window in the middle (as can be seen in the object browser image below).
Why isn’t the the correct window name being passed into the Handler's Window parameter?