Something like this might work…
If there are 5 SameTitle labels on the page it picks the one you want…
For example (//*[(text() = ‘SameTitle’)])[3] will pick the third one.
(//*[(text() = 'SameTitle')])[1]
(//*[(contains(text(), 'SameTitle'))])[1]
For the same input types I use something like this:
(//input[@type='text'])[1]
(//input[@type='text'])[2]
(//input[@type='text'])[3]