Ask a Question

Find Objects from its Chid

SOLVED
MadGrb
Contributor

Find Objects from its Chid

Hi,

 

I want to TC recognize a objects from objects' child. I have many objects that are same but they child are diffrent.

 

How can I solve this Problem? 

1 ACCEPTED SOLUTION

Accepted Solutions
tristaanogre
Community Hero

Re: Find Objects from its Chid

NameMapping has a feature called "required children".  You can indicate an object by including in the mapping criteria that it has certain required children.

 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/requ...


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

5 REPLIES 5
BenoitB
Community Hero

Re: Find Objects from its Chid

Use of Parent property of object ?

Un sourire et ça repart

Wamboo
Community Hero

Re: Find Objects from its Chid

What you can do is..:


1) Search for the desired values by clicking this parent button [...] (see screen number01)

2) Using the .findxxx() function with parameters such as "Parent.Parent.ObjectIdentifier" means that you can move up or down the object viewer structure using Parent prop.

3) Searching for an object directly inside the object viewer using Sys.

MadGrb
Contributor

Re: Find Objects from its Chid

Hi,
I want find parent from her child. For example, I have 100 windows with same property just diffrent footer. I use extended but that waist too much time. I am looking for faster way.
tristaanogre
Community Hero

Re: Find Objects from its Chid

NameMapping has a feature called "required children".  You can indicate an object by including in the mapping criteria that it has certain required children.

 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/requ...


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

sonya_m
Community Manager

Re: Find Objects from its Chid

Thank you for suggestions everyone!

 

@MadGrb is Required Children what you are looking for? Please let us know how this works or your use case.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: