Forum Discussion
Hi,
> .FindAllChildren(" "," ",7)
The above line of code says: "Find all children up to the depth of 7 that have property with the name <one space> and the value of this property equals to <one space>".
I bet no such object exists in your application.
If you like to get all children up to level 7, then provide a property that exists for any object and indicate that it may have any value. E.g.: .FindAllChildren("name","*",7)
If you like to get just input fields, the code might be like this: .FindAllChildren("input field name","*",7)
- sonya_m4 years agoSmartBear Alumni (Retired)
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,
I'm sorry I should have entered property name and value in FindAllChildren, just left it blank for the post, in actual I put the property and the value in real code. What I'm trying to do is to get all children on the user credentials dialog and then extract username and password based on index. Javafullclassname property is available for username and password field and for the dialog that contains those field has AWT properties.<<- AlexKaras4 years agoChampion Level 3
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.
Related Content
- 8 years ago
- 12 years ago
Recent Discussions
- 4 hours ago
- 6 days ago
- 10 days ago