Micro Focus QTP (UFT) Forums
QTP 11 - Idenifying Window Object instead of Browser - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: QTP 11 - Idenifying Window Object instead of Browser (/Thread-QTP-11-Idenifying-Window-Object-instead-of-Browser)



QTP 11 - Idenifying Window Object instead of Browser - Kannan R - 07-24-2013

We were using QTP 10 and IE 7 before. Now we are migrating to QTP 11 with IE 8. Normal object changes includes window objects like login pop up windows,warning messages etc. I have identified such things and updated the OR. Whenever I run the script,IE is being launched...QTP is identifying it as a window object.(I have placed a break point in the conditional statement for checking the browser availability.) But if I close the browser and reopen it manually and then check the conditional statement.... its working fine.. why this is not happening the first time. Please suggest any idea....


RE: QTP 11 - Idenifying Window Object instead of Browser - learnQtptips - 07-25-2013

I guess the issue is something like this...

1. You open ur Browser and then launch ur QTP, in this case QTP doesn't identify the browser.
2. When You launch ur QTP first and then open ur Browser, it identifies the objects.

If my understanding is correct, well this happens in few cases. So try to open the Browser after the QTP is launched or as a best practice always open the browser through QTP.

Hope it helps you.