![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自动化
文章平均质量分 57
飞扬羽人
这个作者很懒,什么都没留下…
展开
-
JAVA+Appium实现元素组合属性定位页面元素
背景:页面元素无法通过单一属性唯一确定[XPath/id不唯一,........],需要通过组合属性定位1、组合属性定位List<MobileElement> lis = new ArrayList<MobileElement>(); MobileElement mobileEle =null; /* locate elements by className and index */ public List<MobileElement> getElem.原创 2021-01-03 19:51:46 · 530 阅读 · 1 评论 -
Android_App_auto_CommDependencies
JAVA +AppiumMaven_Dependencies<dependencies> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.10</version> <...原创 2021-01-01 22:11:33 · 110 阅读 · 0 评论 -
JAVA+Appium 自动化实现手机屏幕滑动点击操作
背景:App某些页面元素无法通过Appium或其他方式抓取到,无法通过传统方式定位到元素。原理:获取到当前屏幕的尺寸,在要操作的元素的屏幕位置构造像素点位,进而执行点击或滑动操作。注:坐标定位时采用相对定位方式,可适配其他分辨率。1、坐标点击屏幕元素<!-- https://mvnrepository.com/artifact/io.appium/java-client --> <dependency> <groupId...原创 2021-01-01 18:17:32 · 4625 阅读 · 4 评论