错误写法:
driver.findElementByXPath("*//[@resource-id='com.yxbao.faith:id/bottom_menu']/android.widget.ImageView[3]");
导致定位一直失败,
正确写法
driver.findElementByXPath("//*[@resource-id='com.yxbao.faith:id/bottom_menu']/android.widget.ImageView[3]");
错误写法:
driver.findElementByXPath("*//[@resource-id='com.yxbao.faith:id/bottom_menu']/android.widget.ImageView[3]");
导致定位一直失败,
正确写法
driver.findElementByXPath("//*[@resource-id='com.yxbao.faith:id/bottom_menu']/android.widget.ImageView[3]");