- December 12, 2011
- Posted by: Anjana V K
- Category: Testing
If your IE based application opens another window whose properties are same, it would be difficult to identify the objects in the newly opened browser.
For example consider an application, on login user is navigated to a launch page where we can launch our application in a new window. All the windows opened are having 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 objBrowser = Browser(“creationtime:=1”)
Set App_objPage = objBrowser.Page(“title:=NAME”)
Make sure all the other IE instances are closed before our scripts starts execution.