Depending on you count requirement keep changing the micclass to webedit,
webbutton etc to the below code.
Set objBrowserSync =
Browser("name:=..........)).page("title:=.........................")
Set oDesc = Description.Create()
oDesc("micclass").Value = "WebRadioGroup"
Set Lists = objBrowserSync.ChildObjects(oDesc)
NumberOfLists = Lists.Count()
For i = 0 To NumberOfLists - 1
msgbox Lists(i).getroproperty("name")
Next
On Sat, Feb 6, 2010 at 3:16 AM, Saurabh Jain <[email protected]>wrote:
> hi,
>
> Please give me a solution to count objects (editbox, button, combo
> etc...) appearing on the web....
>
> I am trying to script in QTP9.2...
>
>
> Please help me..
>
> regards,
> saurabh jain
>
> --
> 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]<mercuryqtp%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
--
Ganesh Muralidharan
'God Never Forgets'
--
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