I'm working on the application where I want to click on HTMLAnchor whose Caption value is same for diiferent nodes.. For Eg:
A Tree like structure-> State (HTMLAnchor)
Similarly we have another State which has same structure but the Index is changed, the caption will be the same..
With TP I tried to identify the Anchor for site..
HTMLAnchor(Caption="Sites",Index=2) for one State..
For another State we have another Site,
HTMLAnchor("Caption="Sites",Index=4)..here the index is dynamically generated..
Is there is any way that I click the Site for that particular State...I'm storing the value of State in Excel sheet but for Adding the Site TP got confused to which site i need to click because the index value i'm not storing in Excel format that is dynamically generated..
Please put some valuable comments to this ..I'm facing the problem in executing the Script with TP...
Index is assigned to non-unique objects by testpartner from top left to bottom right of the screen. If there is no other property that is unique you will have to figure out how to manage Index in your excel file.