scsvel
14 years agoFrequent Contributor
Regarding FindChild method
Hi all,
I am using FindChild method very often in my automation scripts. I have some clarifications..
If I wanted to pass single property then OK...
Sys.FindChild("PropName", "PropValue", depth_of _child);
If I wanted to pass multiple properties then I need to go for arrays and I am using JavaScript...
Names = new Array("Visible", "Enabled");
Values = new Array(true, true);
Sys.FindChild(Names, Values, depth_of _child); ----> Not work as mentioned in TC HelpFile
But here I need to convert these Array Values to Dictionary Object and have to pass.. Why I have to convert to other format and any other options are there to accomplish this in an easy way?
Thanks.
I am using FindChild method very often in my automation scripts. I have some clarifications..
If I wanted to pass single property then OK...
Sys.FindChild("PropName", "PropValue", depth_of _child);
If I wanted to pass multiple properties then I need to go for arrays and I am using JavaScript...
Names = new Array("Visible", "Enabled");
Values = new Array(true, true);
Sys.FindChild(Names, Values, depth_of _child); ----> Not work as mentioned in TC HelpFile
But here I need to convert these Array Values to Dictionary Object and have to pass.. Why I have to convert to other format and any other options are there to accomplish this in an easy way?
Thanks.