UIautomation定位的优点:
速度比xpath定位快,UIautomation是Android的工作引擎
缺点: 没有idea提示
UIautomation使用方法:
AndroidDriver<MobileElement> driver=(AndroidDriver<MobileElement>)this.driver;
UIautomation定位种类:
通过父子关系定位
通过兄弟节点定位
通过resourceId 定位
通过classname定位
滑动查找元素
UIautomation定位的优点:
速度比xpath定位快,UIautomation是Android的工作引擎
缺点: 没有idea提示
UIautomation使用方法:
AndroidDriver<MobileElement> driver=(AndroidDriver<MobileElement>)this.driver;
UIautomation定位种类:
通过父子关系定位
通过兄弟节点定位
通过resourceId 定位
通过classname定位
滑动查找元素
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。