I am using NativeWebobject.Find metho to search for links. But the issue I just encountered is that if suppose there are more than two links with the same name and same properties how can we distinguish between them. Is there any use of ordinal identifiers Like index property?
Can you give an example of how these are the same? Do they literally link to the same page via the same link text?
I've never had this problem, specifically, but I did have an issue with a Java Swing app that we wrote. The issue was known, but wasn't fixed immediately. Basically, when Window X was opened, it created an instance of that window. However, when closed, it didn't actually kill that window, it just made it invisible. When you brought up that window again, though, it would raise a new instance of the window. So now I have two windows that are the same, but I don't know which one to click on using keyword driven automation.
So basically, I wrote a function to check and see how many instances of this window existed. Then I just grabbed searched for the one that was actually visible and bound that object to my variable.
It's a little bit of a different case, but I'm sure there must be something that you can find different between the two to determine which to click. Alternatively, you could try verifying both separately, couldn't you?