Micro Focus QTP (UFT) Forums
Close popup ad windows - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Close popup ad windows (/Thread-Close-popup-ad-windows)



Close popup ad windows - dustwynn - 10-25-2016

Is there a general code that closes any popup ads that may appear while navigating a page? Or maybe should I add a if condition? If popup object exist close it, else click on next object?


RE: Close popup ad windows - Ankur - 10-25-2016

You are looking for exception handling. UFT provides Recovery Scenarios for such purposes.