| || |
Is there a way in QTP 8.0 to count only the web.button objects within a web application where the name = "Change Package"? There are several objects that are web.buttons on a page but I only want to count the web.button objects with this name. After searching around in the help files I am not getting a clear understanding of how to use or if I can use any count functions.
Re: Count Method
That was an interesting way to do it too.
This one was suggested to me by William Blake in this forum.
Set MyObject = Description.Create()
MyObject("micclass").Value = "Button"
MyObject("propname")= "Change Package"
Set ButtonObject = Browser("Browser").Page("Browser").ChildObjects(My Object)
NumberofButtons = ButtonObject.Count
This worked for me. frankly kinda easy too.