摘要:
将滑屏操作的动作封装起来,可以使用反复调用,你想用的时候调用就可以了,很方便。 #屏幕向上滑动, x轴不变,y轴向上移动 #屏幕向上滑动, x轴不变,y轴向上移动 def swipeUp(dr,n,t=2000): L=dr.get_window_size() x1=L['width'] * 0.5 阅读全文
posted @ 2020-12-30 23:35
多测师_肖sir
阅读(364)
评论(0)
推荐(0)
摘要:
uiautomatorviewer截图:滚动框为一个整体,无法定位到商品类型中的每一个元素,所以使用id,name无效 阅读全文
posted @ 2020-12-30 23:21
多测师_肖sir
阅读(145)
评论(0)
推荐(0)
摘要:
app屏幕滑动定位(swipe方法)swipe语法:Swipe(int start x,int start y,int end x,int y,time)#参数的个数根据实际情况使用解释:int start x-开始滑动的x坐标, int start y -开始滑动的y坐标。 int end x - 阅读全文
posted @ 2020-12-30 20:27
多测师_肖sir
阅读(385)
评论(0)
推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-12-30 19:45
多测师_肖sir
阅读(35)
评论(0)
推荐(0)
摘要:
from appium import webdriver #导入appium库from time import sleepcps={ #匹配模拟器和App "platformName":"Android", "deviceName":"127.0.0.1:62001", "platformVersi 阅读全文
posted @ 2020-12-30 16:43
多测师_肖sir
阅读(244)
评论(0)
推荐(0)
浙公网安备 33010602011771号