airtest 自动滑动屏幕

# -*- encoding=utf8 -*-
__author__ = "Administrator"

from airtest.core.api import *

auto_setup(__file__)

from poco.drivers.android.uiautomation import AndroidUiautomationPoco
import random

dev = connect_device("Android://127.0.0.1:5037/AVY9KA9611412715") 
while 1:
poco = AndroidUiautomationPoco(dev)
poco.swipe([0.5, 0.7], [0.5, 0.1]) 
poco.click([0.186,0.567])
t = random.randint(1, 10)
sleep(t)

airtest 自动滑动屏幕

 

 
上一篇:Airtest连接模拟器


下一篇:微信小程序自动化实战(一)