prasath_2k
3 years agoOccasional Contributor
How to access all child objects and get its value?
Hi, I have to check different parameters values like "device name", "reference" etc from the window(Reference image I have attached). To do so I have spied the panel and it has got 26 child objects....
- 3 years ago
to find all children you can use Colin_McCrae 's suggestion at the bottom of this thread
to find all properties of an object you can use
- 3 years ago
Please find the below sample code to print the text of all the child objects under particular parent .
def sample(): page = Sys.Browser("*").Page("*") arrProp = [] #provide a list of property arrValue = [] #provide a list of values objParent = page.find(arrProp,arrValue,30) iChildCount = objParent.ChildCount for each in len(iChildCount): Log.Message("Content Text of Child :"+ each + " is : " + str(objParent.Child(each).contentText))