Example #1
0
 def test_2autologin_yueka(self):
     p.begin(task_id)
     p.tcfenxi()
     update()
     zhuce()
     p.tcfenxi()
     pay()
     p.tcfenxi()
Example #2
0
    def test_2autologin_yueka(self):
        p.begin(task_id)
        p.tcfenxi()
        update()
        zhuce()
        p.tcfenxi()
        pay()
        p.tcfenxi()
        
        if p.checktask():
            #login()
            p.tcfenxi()

        p.checkweb()
        p.tcfenxi()
Example #3
0
    def test_2autologin_yueka(self):
        p.begin(task_id)
        p.tcfenxi()
        update()
        p.tcfenxi()
        zhuce()
        p.tcfenxi()
        pay()
        p.tcfenxi()

        sleep(5)
        login()
        p.tcfenxi()

        sleep(10)
        p.checkweb()
        p.uninstall_app()
        p.tcfenxi()
Example #4
0
        c.screenshot(screen_picture)
        p1 = screen_picture
        p2 = current_picture
        a, x, y = opencv.imgcompare(p1, p2)
        k = k + 1
        print('尝试第', k, '次', thing)
        if k == 10:
            sleep(1)
            return False
    if a:
        print('获取点击坐标', thing, a, x, y)
        p.touch(s, x, y)
        s.tap(x, y)
    return True


def report(mo, msg):
    p.report('', mo, msg)


if __name__ == '__main__':

    p.begin(task_id)
    update()
    zhuce()
    p.tcfenxi()
    pay()

    p.tcfenxi()
    p.sessionquit()