I have a script which Randomly clicks on one of the links which are available in the web application. The problem is if two or more links have the same name then QTP throws the following error:
The "chkBOX" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object.
Any ways to solve this issue? Attached is the screenshot of the application to help you get the visual.
If two objects are identified by the same identifier then uniqueness is ensured by the index property. The first link on the page (top down left to right) will be indexed as zero with the second appearing as index 1, etc.
If you know whether/not there are more than one of the same name then you can add the index to those links. If you don't know then you could add the "index:=0" property to object identification. This will make the selection pseudo random as only the first instance will be within the selection process but your script shouldn't die.