Identifying element having similar Id's in Android

Hi,
In my android native app, there are two elements whose ID, text and classname are similar. Is there any way to uniquely differentiate them?
NOTE: There is no Index or content-desc present

Similar or exactly the same? If the latter, then you’d have to identify them by their position in the heirarchy. Perhaps they have dissimilar siblings.

Exactly same…positions are dynamic…there isn’t any indexes also…

There must be some difference, or else you wouldn’t be interested in trying to determine which is which. The question now is, what properties are set on the elements that you can obtain through UI automator.

For example, there are some tabs on one screen I work with where all visible properties are the same except one is selected. You’ll need to identify what difference is visible.