Work with multiple IE instances using QTP

If your IE-based application opens another window whose properties are the same, it would be difficult to identify the objects in the newly opened browser.

For example, consider an application, login user is navigated to a launch page where we can launch our application in a new window. All the windows opened are having the same set of properties like title, name, etc.

Solution:

We can select the objects in any page based on the creation time property of the window.

Set oDesc = Description.Create
oDesc( “micclass” ).Value = “Browser”

Set sDesk=Desktop.ChildObjects(oDesc)
Set objBrowser = Browser(“creationtime:=1”)
Set App_objPage = objBrowser.Page(“title:=NAME”)

Make sure all the other IE instances are closed before our scripts start execution.

Have questions? Contact the software testing experts at InApp to learn more.

Ready to Build
Something
Extraordinary?

Join 300+ companies who trust us to turn their biggest ideas into market-leading solutions.

Our Global Team
500+ Engineers Worldwide
SOC 2 Certified

Get in Touch with Us

Our Global Team
500+ Engineers Worldwide
SOC 2 Certified

InApp India Office

121 Nila, Technopark Campus
Trivandrum, Kerala 695581
+91 (471) 277 -1800
mktg@inapp.com

InApp USA Office

999 Commercial St. Ste 210 Palo Alto, CA 94303
+1 (650) 283-7833
mktg@inapp.com

InApp Japan Office

6-12 Misuzugaoka, Aoba-ku
Yokohama,225-0016
+81-45-978-0788
mktg@inapp.com
Terms Of Use
© 2000-2026 InApp, All Rights Reserved