You have to mention the type class in the object creation like
ABC("micclass").value="link"

And loop should be like this
For i = 0 To xx.count-1 Step 1 ss=xx.getroproperty("index")
print ss
Next

Loop basically starts with 0 index and should be closed by count-1

Thanks
On Jun 12, 2016 3:39 PM, "kranthi kumar" <[email protected]> wrote:

> et abc=description.Create abc("innerhtml").value="national"
> abc("outertext").value="national" set
> xx=browser("micclass:=Browser").page("micclass:=Page").ChildObjects(abc)
> For i = 1 To xx.count-1 Step 1 ss=xx.getroproperty("index") print ss Next i
> wrote code like this bt its not working cn u pls let me know where i did
> wrng in this one
>
> On Sun, Jun 12, 2016 at 1:20 AM, Sourish Mallick <
> [email protected]> wrote:
>
>> Use child object to find the index...get example in Google to implement
>> child object
>> On 09-Jun-2016 5:24 pm, <[email protected]> wrote:
>>
>>> hi frnds............say fr example there are four links with same name
>>> then i want to fetch the index of all those elements..how can i achieve
>>> this pls let me know
>>>
>>> --
>>> --
>>> 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.
>>>
>> --
>> --
>> 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.
>>
>
> --
> --
> 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.
>

-- 
-- 
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.

Reply via email to