Forum Discussion
As I understand it, the TestComplete event for Unexpected/Overlapping window triggers if you attempt to interact via mouse click or keystroke with a component on the underlying window. So, whether or not the component is visible on screen shouldn't matter to TC. Do you have code or something in your tests to check for "VisibleOnScreen" before proceeding? If so, you may want to modify that to only check the "VisibleOnScreen" property when it is necessary to do so.
In any case, once the unexpected/overlapping window event gets triggered, you can create an event handler that will do the necessary button click as you described. See https://support.smartbear.com/viewarticle/84027/ for more information.
Thanks dude for your support :smileyhappy:
Is there anyway to identify Model Window popup dynamically while script execution process i.e like General Events(UnexpectedWindow/Overlapping)?
Regards, BommaReddy
- tristaanogre9 years agoEsteemed Contributor
There's not a way to create custom events to be handled in the same way.
However, you could create a Timer Object (https://support.smartbear.com/viewarticle/82264/) that would execute every so many seconds. It's not an event handler necessarily but you could set up a timer that would check to see if the window exists and, if it does, click the OK button on it.
see another example here:
- bommareddy9 years agoContributor
Hi Team,
Is there any way to identify the window based(windowless) popup, Just like to identifying UnexpectedWindow/Overlapping.
We can handle this popup if it appears by clicking on a button/link.
But my situation is, I exactly don't know when this popup will be triggered and I want to handle this popup without disturbing the script execution.
Regards, BommaReddy