exitLogin.py 560 Bytes
# -*- encoding=utf8 -*-
__author__ = "zhanghao"

from airtest.core.api import *

def exitLogin():
    touch(Template(r"tpl1622181656726.png", record_pos=(0.306, -0.932), resolution=(1080, 2340)))
    sleep(3)
    touch(Template(r"tpl1622181674939.png", record_pos=(-0.005, 0.621), resolution=(1080, 2340)))
    sleep(3)
    touch(Template(r"tpl1623058726543.png", record_pos=(0.188, 0.096), resolution=(750, 1334)))

    sleep(5)
    assert_exists(Template(r"tpl1622181718756.png", record_pos=(0.0, -0.31), resolution=(1080, 2340)), "验证退出登录正确")