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.


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.