How to find the objects that don't have unique values?
- 5 years ago
Hi,
I can think of such solutions/thoughts:
1) At the start, open the whole menu and use the txt recognition function in TestComplete to locate the corresponding item.
2) When you scan an element called 'locatePoint.dgn', in the 'childCount' property you have the appropriate number of child entities (10). Check with .find() whether it returns the correct objects.
3) When you scan an item called 'locatePoint.dgn' there is a 'Items' property -> press [...] and see what is inside. Maybe there is a list of objects ready to be read.
4) One of the simplest solutions is to navigate the tree with up and down keys and read the object name element (if it exists) and perform operations after finding the element.
5) You can also use ImageRepository in the critical case.
Let me know if you need more information.