Two Objects have same Xpath?

If I check “XPath” as Selection Method in the object repository and modify your solution and both solutions below finally work as Selector Editor :

(//*[@title
= ‘ERASE’])[2)]

or

(//*[@title
= ‘ERASE’])[last()]

Thanks a lot !!

If an xpath refers multiple elements on the DOM, It should be surrounded by brackets first () and then use numbering.

if the xpath refers 4 elements in DOM and you need 3rd element then working xpath is
(common xpath)[3].

If you are beginner and need more clarity watch https://youtu.be/k-znmPHjTF0

Please, help me find exactly xpath element as 3 file below:
I try to do steps above but can’t find the 2th xpath element that I want

You need to add to your xpath, since you have multiple objects with the exact same “id”. One in “x-toolbar-right-row” and the other in “x-toolbar-left-row”.

How about maybe something like the below?

//tr[@class="x-toolbar-right-row"]/td[@id="ext-gen138"]
or
//tr[1]/td[@id="ext-gen138"]

id("ext-gen350")/button[@id="ext-gen138"]