Appium定位方法之findElementByAndroidUIAutomator
WebElement two =driver.findElementByAndroidUIAutomator("new UiSelector().className(\"android.view.ViewGroup\").childSelector(new UiSelector()"
+ ".className(\"android.widget.Button\").index(7))").click();//通过UiSelector的childSeletor点击
WebElement email = driver.findElementByAndroidUIAutomator("new UiSelector().text(\"Email\")");
WebElement phone = driver.findElementByXPath("//*[@class='android.widget.EditText' and @text='Phone']");