03-28-2011, 03:06 PM
This is my code...
whenever i run this code it's displaying childobject count as 11
after that it is showing error as "Object doesn't support this property or method" (For for each loop).Why it's happening? Any help is appreciated.
Code:
Set obj=description.Create
obj("micclass").value="WebEdit"
set Objchld=Browser("OrangeHRM").Page("OrangeHRM").Frame("rightMenu").ChildObjects(obj)
msgbox Objchld.count
For each i in Objchld
i= i.name
Next
whenever i run this code it's displaying childobject count as 11
after that it is showing error as "Object doesn't support this property or method" (For for each loop).Why it's happening? Any help is appreciated.