I am trying to get all the open Browser objects using QTP11. The code I use is the following:
Set descBrowser = Description.Create
descBrowser("micClass").Value = "Browser"
Set objChildren = Desktop.ChildObjects( descBrowser )
During testing, i have two IE Browser windows open, but the collection returned by the code shows four found items. I checked the running processes also, which show the correct number of 2 processes running.
I have also checked with 3 Browsers open, in which case it shows 6 objects matching the descrption.
Can anybody explain why this could be happening?