How to identify an element when there is more than 1 instance exist with the same object properties
I need to click an Link element when there is more than 1 instance exist with the same object properties. When using inspect tool it is showing same properties for both instance of link object. How to click on 1 of the 2 instances of link object.
Actually in UFT tool we can identify using index property like 0,1, 2 like this then it is identify and click respective instances but in WinAppDriver how to handle this.
Please find the screenshot.

It can be handled the same way in WAD also. using index property var names = session.findelementbyAccessiblityID("automationID") names[index].click()
The question probably relates to which of the two you should work with. use FindElementsByX and get them all.
If you need to distinguish between the two, WinAppDriver probably can't
I am able to handle this scenarios with below code. Thanks guys for your suggestions.
IList
string Acttext_1 = HPLink[0].GetAttribute("Name"); string Acttext_2 = HPLink[1].GetAttribute("Name");