How To Locate Elements using selenium web driver when only Unique value is 'index'? `Resource-id`,`Class` and `Package` are not unique. Below Layout taken from Android UI Automator [![enter image description here][1]][1] [1]: https://i.sstatic.net/RmyLT.jpg Resource-id = android:id/menuitem Class = android.widget.RelativeLayout Package = android