app自动化定位:UIautomation的用法
UIautomation定位的优点:
速度比xpath定位快,UIautomation是Android的工作引擎
缺点: 没有idea提示
UIautomation使用方法:
AndroidDriver<MobileElement> driver=(AndroidDriver<MobileElement>)this.driver;
UIautomation定位种类:
通过父子关系定位
通过兄弟节点定位
通过resourceId 定位
通过classname定位
滑动查找元素