We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
In TestComplete this usually happens for one of these reasons:
Most commonly (especially with WPF apps), the dialog isn’t actually being recreated the second time — it’s just being hidden and shown again. If the window object never gets destroyed, TestComplete doesn’t treat it as a “new” unexpected window, so the event won’t fire again. You can confirm this in Object Browser by checking whether the window truly disappears from the hierarchy or just toggles Visible, rather than being removed completely.
Other things worth checking:
If this resolves your scenario, marking it as the solution helps future readers find it quickly.
Hello Hassan Ballan,
Thanks for the response. I have checked and tried all the options you have mentined. I came here after exchauting all the options i have.
But today when i changed to this option, The UnexpectedWindow event seems to be fired all the time.
Tools-->Current Project Properties--> On error: Stop and rerun current item
Not sure why it happens. But Intuitively speaking, even when this Option is set to "Stop project/Stop current item", the event should be triggered.
I will keep you posted if there are any irregular firing of events or no firing of events occur again
Regards