set objs=Browser("actiTIME - User List").Page("actiTIME - User List").ChildObjects
for i=0 to objs.count
For each i in objs
QTP should have supported it, or there is any trick for this to work?
<font color="blue">[i]If there is no struggle, there is no progress!
For Each is not support by all objects. It based on interface being implemented by the object. That is why it doesn't work on the object returned by ChildObjects
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
Array supports 'for each' but array of objects doesnt seem to support it
The childobjects doesn't return an array. It returns an object which stores a collection. So there is a big difference
You have to write descriptive for the object you want on the page.
set objs=Browser("actiTIME - User List").Page("actiTIME - User List").ChildObjects(use here the DP object)
Now ‘For Each’ will displays property of object specified in DP.
For each x in Child_Obj
Praveen, Have you test your code before posting?