Micro Focus QTP (UFT) Forums
Closing modal dialogs for IE - 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: Closing modal dialogs for IE (/Thread-Closing-modal-dialogs-for-IE)



Closing modal dialogs for IE - cowboy49 - 08-29-2011

Hello, I am looking for a way to close Modal dialog for IE (e.g. Default browser check). Below is some sample code I am using:

Code:
Set objDialog = objBrowser.Dialog("is owned window:=True")
objDialog.Close

I am getting an error with this code on the "Set" line. Is there a better way to achieve this?