Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Child objects - Error while retrieving name
#1
Solved: 11 Years, 4 Months ago
This is my code...

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


Messages In This Thread
Child objects - Error while retrieving name - by ksrikanth2k9 - 03-28-2011, 03:06 PM
RE: Child objects - by basanth27 - 03-28-2011, 03:34 PM
RE: Child objects - by ksrikanth2k9 - 03-28-2011, 03:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,295 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  Driver Script to control child scripts sumanhyd 1 3,191 07-26-2016, 07:06 PM
Last Post: Ankesh
  UFT 12.50 unable to recognize child objects from a Dialog Class in Firefox jesusisaac 1 3,811 08-20-2015, 11:39 PM
Last Post: ADITI1992
  Child object shwetakondekar 0 2,141 07-01-2015, 03:28 PM
Last Post: shwetakondekar
  How to write a script for fly out menus (Parent - Child - Sub Child) rajkumarsm 3 4,732 09-02-2014, 10:01 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 2 Guest(s)