Data grids and tabs
Having an issue with one of the tests I recorded and was hoping someone could point me in the right direction. The interface I am testing has a tabbed form. Each tab, when clicked, has its own data grid. So, each data grid is a child of a tab. Each tab has a label. The label is dynamic - meaning that it was coded to append the number of items in the data grid. So, if data_grid_1 contains 20 records, its parent tab would be named exampleTab_20. If it increases to 35 records, it is named examplTab_35. Test complete is capturing these objects by the name of the tab. So if I record the test when a grid has 20 items, it captures the object as exampleTab_20.data_grid_1. When the amount of data in the data grid increases or decreases, it can no longer find the object. Anyone else run across this type of situation? Is there a good way around this problem?
Re: Data grids and tabs
You could try using a different property such as 'text' then create a loop to look for the text string instead of a number.