mante_bos
12 years agoNew Contributor
Name Mapping to different objects
In my application under test, I have a screen with 4 tabs, a txtSearchBox and a grid.
When selecting a tab, different data is shown in the grid, but the txtSearchBox and the grid seem to be the same.
However, TestComplete creates different objects for the grid and txtSearchBox for every tab. So in the object browser I see something like this:
Tab1
txtSearchBox
grid
Tab2
txtSearchBox
grid
The only difference is that Tab1 and Tab2 have a different name. The subelements are exactly the same. But if Tab1 is selected, Tab2.grid is cannot be found/highlighted.
Is it possible to make an object like
Tab
txtSearchBox
grid
That would recognize/highlight the txtSearchBox and the grid, whichever tab is selected?
I hope it is clear what I mean.
Thanks in advance