I am using Pydev in Eclipse to automate an Android app with Appium. I'm not able to click on the element. FrameLayout has different index [0,1,2] rest everything is same.
I have tried these:
driver.find_element_by_android_uiautomator("new UiSelector().className(\"android.widget.FrameLayout[@index = '2']\")").click()
&
driver.find_element_by_xpath("//android.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.widget.LinearLayout[0]/android.widget.RelativeLayout/android.support.v7.widget.RecyclerView/android.widget.FrameLayout[1]").click()