Forum Discussion
Hi Tristaanogre thanks for your reply.
My code:
1. Set objAbc = xyz
2. aqUtils.Delay 5000
3. objAbc.Click
Consider this as example. During the execution process of the second line, the Unexpected/Overlapping window triggers. At Line 3, i am trying to click on objAbc object. But the "objAbc" is "VisibleOnScreen=False".
I am performing click action on the main webpage. During this general events are not triggering(Unexpected/Overlapping) for this event.
I have return seperate code in eventHandlers
Sub OnOverlappingWindow(Sender, Window, OverlappingWindow, LogParams)
'code to handle overlapping/Unexpected window
End Sub
Regards,
BommaReddy
As noted in the support article that I linked, there are certain situations where the overlapping window event doesn't fire. Please check your application to see if it meets those criteria. If so, you may need to write your own code so that, before interacting with your main application, you check for the popup. Something like:
Set objAbc = xyz aqUtils.Delay 5000 CheckAndClosePopup() objAbc.Click
where the function CheckAndClosePopup would have something like
if (MyApp.WaitChild('PopUpWindow', 100).Exists){ MyApp.PopUpWindow.OKButton.Click() }
That's the best I can do for you. There could be other ways using timers and such but that might end up putting a heavier load on your test project performance.