Forum Discussion
Thanks Alex!
Hi TestQA1 , I see that you replied straight to the email notification, this way your reply won't be posted to the community.
Let me quote it for this time, please reply inside the community in the future, thank you!
Here's your reply:
>>
Hi,
sonya_m :
Sonya, thank you for reposting the reply.
TestQA1 :
> What I'm trying to do is to get all children
And ?
- TestQA14 years agoFrequent Contributor
Hi Alex,
The swing desktop app has a login page with a login dialog on it. I have been trying to first get all the child/grand child objects on the dialog and then want to perform operation on those grand child objects using index.
Javafullclassname property is there for username and password fields. But, I am not able to fetch these two objects.
Thank you.
- AlexKaras4 years agoChampion Level 3
Hi,
> I am not able to fetch these two objects.
Any more details? Your code? Error message? What line of code throws the error? Screenshot of Object Browser with one or both objects that you'd like to find? Anything else that can help others to understand what you have tried and what exactly does not work for you?
- TestQA14 years agoFrequent Contributor
Object Explorer Hierarchy:
Sys.Process("abc").SwingObject1(some property,value).SwingObject2(some property,value)
Now SwingObject2 has two childs, SwingObject2.1(some property,value) and SwingObject2.2(some property,value)
I want to fetch all childs of SwingObject2.1 (lets say it has 5 direct childs and I want to get SwingObject2.1.2) above through iteration or something.
l = Sys.Process("abc");
ll = l.SwingObject2("some ClassName", "value",index , WndIndex);
lm = ll.FindAllChildren("JavaFullClassName","value of the class of the SwingObject2.1.2 ",10);if(lm.length>0){
Log.Message("length exist");
Log.Message(lm.FullName);
}
}else {
Log.Message("else")
}Is this the right way to iterate through swing objects? And I don't know how to find indexes in Object Tree, I'm sorry I am new to Test Complete.
Thanks
Related Content
- 8 years ago
- 12 years ago
Recent Discussions
- 4 hours ago
- 6 days ago
- 10 days ago