Basically I am searching for a syntax that I can use to select an element that shares the same name, properties and attributes.
I was thinking of selecting them via Index. (Unfortunately Xpath wont work since it's a dynamic element.)
So, I have a page where the element Add is shown twice, both of them adds/throws a different value. But both of them has the same ID, Attributes and Name. In my test I need to select the first Add and then the other.
${add attributes row} //*[@data-bind="click: function() { $parents[1].addItem($parents[1] .attributes()[$parentContext.$index()]) }", index=1] ${add attributes row_2} //*[@data-bind="click: function() { $parents[1].addItem($parents[1] .attributes()[$parentContext.$index()]) }", index=2] Is there a way to select them by Index?