摘要:
toast是基于uiautomator2,如果没有uiautomator2的话,需要安装,cmd输入: cnpm install appium-uiautomator2-driver 需要在APP启动设置的capability中额外配置下面内容: "automationName": "UiAutom 阅读全文
posted @ 2021-11-17 09:57
蜗牛Tin
阅读(176)
评论(1)
推荐(0)
摘要:
手机屏幕坐标显示如下:手机左上角为(0,0),横向是x轴,纵向是y轴 swipe()函数介绍:swipe(x1, y1, x2, y2 , t):(x1, y1)为滑动起始点的坐标,(x2, y2)为滑动终点坐标,t为滑动时间,单位为ms 获取手机的屏幕大小,由于每部手机的屏幕分辨率不一样,所以同一 阅读全文
posted @ 2021-11-17 09:52
蜗牛Tin
阅读(504)
评论(0)
推荐(0)

浙公网安备 33010602011771号