Consider a web page having 2 buttons. One at the top & other is at the bottom.
All the parameters including image, selector are same.
How can you click on second button?
You can use either idx or change the aaname or location ( css selector)
Try giving different anchor for both the buttons
Try to use anchor base activity by using different anchors
Hope it helps
can you please share ui-explorer screen shot for both buttons
the parameters class and parent class will be different please check
if that fails use idx
it helps