To allow for changes in the tested application between releases, lines are found at replay time based on text rather than index. This allows for a new release of the application inserting an additional item into a navigation list box, for example.
For hierarchical list boxes, the text at each level is recorded and used.