Forum Discussion
Again, to be clear... you haven't mapped ANYTHING. Terminology matters. :-)
So... what I would suggest... map everything up to a point where there is a common parent. Then use the "FindAllChildren" method on that parent to search for and return a collection of all the desired child objects. That is usually returned as an array. You can then do a for loop through that array and process each item individually.
hi Tristaanogre,
At first, even I have used just like you said but, with that I have to define so many times.
thats why I thought of recurssion but now I am implementing in different way.
At first storing those texts values in a dictonary and list. If condition satisfies thenI will use that text into that VCLObject.
With that I don't have to redefine again and agin and now its works fine
thanks and Regards
SivaKartheek Sreeram
- tristaanogre6 years agoEsteemed Contributor
Once you've mapped something once, it never needs to be mapped again... there is your "dictionary" of objects, already built in to TestComplete.
I guess I'm confused... what problem are you actually trying to solve? - sivakarthik6 years agoContributor
It is not a builtin from testcomplete but it is in python.
Actually, in the application at navigation bar each item has a different grid. I don't want to declare all grids for Navigation bar and to write a common test scenario so that will works for all grids of navigation bar
thanks and Regards
SivaKartheek Sreeram
- tristaanogre6 years agoEsteemed Contributor
Right... which is as I said... map the navigation bar and then use FindAllChildren to return a collection of desired grid objects. That will preclude the need for any recursive code.
Related Content
- 3 years agoIuliaVascan
- 12 years agomaxthomassin
Recent Discussions
- 14 hours agoAivanitskiy
- 17 hours agonastester