count would be 3 only ..It starts from 0, 1, 2 and so on... put count-1
On Wednesday, October 19, 2016 at 1:36:43 AM UTC+2, [email protected] wrote: > > Hi, > > I want to find out how many browsers are open. Why does the following code > always gives one extra browser count? I have 2 browsers open but the count > is always 3. > How to fix this problem? > > > Thanks > > Set oBrowser = Description.Create > oBrowser("micclass").Value = "Browser" > > > > Set allBrowser = Desktop.ChildObjects(OBrowser) > Count = allBrowser.Count > Msgbox "Browser Count - " & Count > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
