TestQA1
4 years agoFrequent Contributor
Accessing SwingObjects using FindAllChildren
Hi,
I have a input field with sys.Process("some property").SwingObject("some property").SwingObject("some property").SwingObject("input field name","",0) in the Test Project.
I need to access the last SwingObject in the above path.
I first want to find all the children of the sys.Process including all the child/grand child swing objects and then use index to perform operations on those objects.
p = Sys.Process("xyz");
let pp = p.FindAllChildren(" "," ",7); //tried adding javafullclassname property but didn't work
if (pp.length > 0){
for (i = 0; i < pp.length; i++){
Log.Message(pp[i].FullName);
pp[i].click();
pp[i].keys(u);
}