# -*- encoding=utf8 -*-
__author__ = "admin"
from airtest.core.api import *
#from airtest.aircv import *
#from poco.drivers.android.uiautomation import AndroidUiautomationPoco
#poco = AndroidUiautomationPoco(use_airtest_input=True, screenshot_each_action=False)
#auto_setup(__file__, logdir=True, devices=["Android:///127.0.0.1:5037/ADDVVB1817011907"])
for i in range(45):
if exists(Template(r"tpl1685978474535.png", record_pos=(0.002, -0.444), resolution=(1152, 2376))):
touch(Template(r"tpl1685978474535.png", record_pos=(0.002, -0.444), resolution=(1152, 2376)))
sleep(3)
if exists(Template(r"tpl1686155096536.png", record_pos=(-0.006, -0.258), resolution=(720, 1600))):
break
else:
touch((191,724),duration=2)
if exists(Template(r"tpl1685978997828.png", record_pos=(-0.003, 0.735), resolution=(1152, 2376))):
touch(Template(r"tpl1685978997828.png", record_pos=(-0.003, 0.735), resolution=(1152, 2376)))
sleep(3)
if exists(Template(r"tpl1687270587594.png", record_pos=(0.4, -0.886), resolution=(1152, 2376))):
touch(Template(r"tpl1687270587594.png", record_pos=(0.4, -0.886), resolution=(1152, 2376)))
sleep(2)
keyevent("SYSRQ")
sleep(3)
keyevent("BACK")
sleep(3)
elif exists(Template(r"tpl1685979011186.png", record_pos=(-0.007, -0.371), resolution=(1152, 2376))):
touch(Template(r"tpl1685979011186.png", record_pos=(-0.007, -0.371), resolution=(1152, 2376)))
sleep(5)
if exists(Template(r"tpl1687186727093.png", record_pos=(0.422, -0.975), resolution=(720, 1600))):
#返回
sleep(1)
keyevent("BACK")
sleep(1)
sleep(1)
#手机截图
keyevent("SYSRQ")
sleep(2)
else:
keyevent("SYSRQ")
sleep(2)
else:
#手机截图
keyevent("SYSRQ")
sleep(4)
sleep(2)
#返回
keyevent("BACK")
sleep(3)
touch(Template(r"tpl1685979073752.png", record_pos=(0.207, -0.157), resolution=(1152, 2376)))
sleep(4)
touch(Template(r"tpl1685982010984.png", record_pos=(-0.007, -0.101), resolution=(1152, 2376)))
sleep(3)
touch(Template(r"tpl1685979103975.png", record_pos=(0.0, 0.328), resolution=(1152, 2376)))
sleep(4)
elif exists(Template(r"tpl1687271020845.png", record_pos=(0.006, 0.812), resolution=(1152, 2376))):
touch(Template(r"tpl1687271020845.png", record_pos=(0.006, 0.812), resolution=(1152, 2376)))
sleep(4)
if exists(Template(r"tpl1687271077756.png", record_pos=(0.378, -0.154), resolution=(1152, 2376))):
touch(Template(r"tpl1687271077756.png", record_pos=(0.378, -0.154), resolution=(1152, 2376)))
sleep(3)
if exists(Template(r"tpl1685979011186.png", record_pos=(-0.007, -0.371), resolution=(1152, 2376))):
touch(Template(r"tpl1685979011186.png", record_pos=(-0.007, -0.371), resolution=(1152, 2376)))
sleep(4)
#返回
keyevent("BACK")
sleep(2)
keyevent("SYSRQ")
sleep(3)
keyevent("BACK")
sleep(2)
#返回
keyevent("BACK")
sleep(3)
touch(Template(r"tpl1685979073752.png", record_pos=(0.207, -0.157), resolution=(1152, 2376)))
sleep(4)
touch(Template(r"tpl1685982010984.png", record_pos=(-0.007, -0.101), resolution=(1152, 2376)))
sleep(3)
touch(Template(r"tpl1685979103975.png", record_pos=(0.0, 0.328), resolution=(1152, 2376)))
sleep(4)
没有合适的资源?快使用搜索试试~ 我知道了~
20231101airtest
共289个文件
png:261个
py:28个
需积分: 1 0 下载量 133 浏览量
2023-11-01
11:14:38
上传
评论
收藏 3.54MB ZIP 举报
温馨提示
20231101airtest
资源推荐
资源详情
资源评论
收起资源包目录
20231101airtest (289个子文件)
tpl1688571147559.png 76KB
tpl1688571147559.png 76KB
tpl1686152497113.png 59KB
tpl1686152497113.png 59KB
tpl1686152497113.png 59KB
tpl1686152487028.png 58KB
tpl1686494074183.png 57KB
tpl1686149220486.png 55KB
tpl1686149220486.png 55KB
tpl1686149220486.png 55KB
tpl1686366472356.png 54KB
tpl1686492993368.png 45KB
tpl1698593230283.png 44KB
tpl1687186459146.png 39KB
tpl1686155096536.png 38KB
tpl1687099566651.png 37KB
tpl1687023020047.png 36KB
tpl1685764257114.png 34KB
tpl1687445432711.png 32KB
tpl1687445420942.png 31KB
tpl1686750426947.png 28KB
tpl1688050155117.png 27KB
tpl1688050155117.png 27KB
tpl1698081067969.png 26KB
tpl1698081067969.png 26KB
tpl1688050237892.png 26KB
tpl1688050237892.png 26KB
tpl1685979103975.png 23KB
tpl1685979103975.png 23KB
tpl1685979103975.png 23KB
tpl1698080745723.png 23KB
tpl1694865913103.png 22KB
tpl1687098372431.png 22KB
tpl1687529623957.png 22KB
tpl1687529393298.png 21KB
tpl1686363777515.png 21KB
tpl1688049475033.png 21KB
tpl1688049475033.png 21KB
tpl1686146849996.png 21KB
tpl1686146849996.png 21KB
tpl1685979073752.png 20KB
tpl1688570381428.png 19KB
tpl1688570381428.png 19KB
tpl1686146440207.png 19KB
tpl1686146440207.png 19KB
tpl1686363766646.png 19KB
tpl1686147915293.png 19KB
tpl1685979011186.png 19KB
tpl1687521387036.png 19KB
tpl1687527099984.png 18KB
tpl1688906957844.png 18KB
tpl1686146618340.png 17KB
tpl1686146618340.png 17KB
tpl1686146618340.png 17KB
tpl1686365008883.png 16KB
tpl1698585145249.png 16KB
tpl1686364490485.png 16KB
tpl1686364531801.png 16KB
tpl1687438395607.png 16KB
tpl1687438395607.png 16KB
tpl1687438395607.png 16KB
tpl1687438395607.png 16KB
tpl1687438395607.png 16KB
tpl1687186887014.png 16KB
tpl1694866207309.png 16KB
tpl1686364510416.png 15KB
tpl1687098353728.png 15KB
tpl1686366488384.png 15KB
tpl1688571001158.png 15KB
tpl1688571001158.png 15KB
tpl1688571001158.png 15KB
tpl1688571001158.png 15KB
tpl1686386955125.png 15KB
tpl1686386955125.png 15KB
tpl1686386955125.png 15KB
tpl1686386955125.png 15KB
tpl1686386955125.png 15KB
tpl1686386955125.png 15KB
tpl1686386955125.png 15KB
tpl1688213433697.png 14KB
tpl1687445093037.png 14KB
tpl1689178156574.png 14KB
tpl1685978474535.png 14KB
tpl1685978474535.png 14KB
tpl1686364981871.png 14KB
tpl1687438440734.png 14KB
tpl1687438440734.png 14KB
tpl1687438440734.png 14KB
tpl1687438440734.png 14KB
tpl1687438440734.png 14KB
tpl1687438440734.png 14KB
tpl1687438440734.png 14KB
tpl1686146952175.png 14KB
tpl1686146952175.png 14KB
tpl1687438468122.png 14KB
tpl1687438468122.png 14KB
tpl1687438468122.png 14KB
tpl1685978997828.png 14KB
tpl1687438525199.png 14KB
tpl1687438525199.png 14KB
共 289 条
- 1
- 2
- 3
资源评论
明月照故乡
- 粉丝: 0
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功