In the function below in UFT 11.53 and 12.01, with no browsers active, the ChildObjects count is 0. With 12.02 base and with the first patch the count is 1. With browsers active the count is always 1 greater than the actual number in 12.02. Has anyone experienced this? Is it a known bug? Is there a fix? Thanks!
Private Function GetBrowserCount()
Set browserObject = Description.Create
browserObject("micclass").Value = "Browser"
GetBrowserCount = Desktop.ChildObjects(browserObject).Count
I get a similar sort of thing with Java. I am trying to get a count of all JavaWindows but "Desktop.ChildObject(oDesc) is not capturing a popup (non modal) window. If I iterate through the child objects of Desktop then it will pick up a number of windows including my popup but identifies it as a standard window. If I create a JavaWindow object using just the "handle" then suddenly Desktop will pick up the popup and I can work with it. The problem is that I do not want to keep iterating through all the windows each time I create a JavaWindow object reference. It would be better if I could create the object reference using the window properties as I do for all the other references I create.