commit
Showing
63 changed files
with
237 additions
and
4 deletions
| ... | @@ -15,8 +15,11 @@ def login(): | ... | @@ -15,8 +15,11 @@ def login(): |
| 15 | sleep(6) | 15 | sleep(6) |
| 16 | if(exists(Template(r"tpl1622181344490.png", record_pos=(0.009, 0.414), resolution=(1080, 2340))) != False): | 16 | if(exists(Template(r"tpl1622181344490.png", record_pos=(0.009, 0.414), resolution=(1080, 2340))) != False): |
| 17 | touch(Template(r"tpl1622181344490.png", record_pos=(0.009, 0.414), resolution=(1080, 2340))) | 17 | touch(Template(r"tpl1622181344490.png", record_pos=(0.009, 0.414), resolution=(1080, 2340))) |
| 18 | |||
| 19 | sleep(10) | 18 | sleep(10) |
| 20 | if(exists(Template(r"tpl1623051624594.png", record_pos=(-0.004, -0.744), resolution=(1080, 2340))) != False): | 19 | if(exists(Template(r"tpl1623051624594.png", record_pos=(-0.004, -0.744), resolution=(1080, 2340))) != False): |
| 21 | touch(Template(r"tpl1623052352857.png", record_pos=(-0.01, 0.701), resolution=(1080, 2340))) | 20 | touch(Template(r"tpl1623052352857.png", record_pos=(-0.01, 0.701), resolution=(1080, 2340))) |
| 21 | sleep(3) | ||
| 22 | if(exists(Template(r"tpl1623828598507.png", record_pos=(-0.2, 0.133), resolution=(1080, 2340))) != False): | ||
| 23 | touch(Template(r"tpl1623828629086.png", record_pos=(-0.2, 0.142), resolution=(1080, 2340))) | ||
| 24 | sleep(3) | ||
| 22 | assert_exists(Template(r"tpl1622181656726.png", record_pos=(0.306, -0.932), resolution=(1080, 2340)), "验证登录正确") | 25 | assert_exists(Template(r"tpl1622181656726.png", record_pos=(0.306, -0.932), resolution=(1080, 2340)), "验证登录正确") | ... | ... |
android/login.air/tpl1623828598507.png
0 → 100644
8.65 KB
android/login.air/tpl1623828629086.png
0 → 100644
9.09 KB
| ... | @@ -5,10 +5,12 @@ from airtest.core.api import * | ... | @@ -5,10 +5,12 @@ from airtest.core.api import * |
| 5 | using("login.air") | 5 | using("login.air") |
| 6 | using("exitLogin.air") | 6 | using("exitLogin.air") |
| 7 | using("setting.air") | 7 | using("setting.air") |
| 8 | using("setting2.air") | ||
| 8 | 9 | ||
| 9 | from login import login | 10 | from login import login |
| 10 | from exitLogin import exitLogin | 11 | from exitLogin import exitLogin |
| 11 | from setting import * | 12 | from setting import * |
| 13 | from setting2 import * | ||
| 12 | 14 | ||
| 13 | auto_setup(__file__, logdir=True) | 15 | auto_setup(__file__, logdir=True) |
| 14 | connect_device("Android:///2PF4C19807005028?cap_method=javacap&touch_method=adb") | 16 | connect_device("Android:///2PF4C19807005028?cap_method=javacap&touch_method=adb") |
| ... | @@ -77,6 +79,41 @@ sleep(3) | ... | @@ -77,6 +79,41 @@ sleep(3) |
| 77 | jiankangceping() | 79 | jiankangceping() |
| 78 | sleep(3) | 80 | sleep(3) |
| 79 | 81 | ||
| 82 | enter() | ||
| 83 | sleep(3) | ||
| 84 | gongjiao() | ||
| 85 | sleep(3) | ||
| 86 | |||
| 87 | enter() | ||
| 88 | sleep(3) | ||
| 89 | shenghuozhoubian() | ||
| 90 | sleep(3) | ||
| 91 | |||
| 92 | enter() | ||
| 93 | sleep(3) | ||
| 94 | tianqi() | ||
| 95 | sleep(3) | ||
| 96 | |||
| 97 | enter() | ||
| 98 | sleep(3) | ||
| 99 | jibu() | ||
| 100 | sleep(3) | ||
| 101 | |||
| 102 | enter() | ||
| 103 | sleep(3) | ||
| 104 | xinwen() | ||
| 105 | sleep(3) | ||
| 106 | |||
| 107 | enter() | ||
| 108 | sleep(3) | ||
| 109 | tizhicheng() | ||
| 110 | sleep(3) | ||
| 111 | |||
| 112 | # homePre() | ||
| 113 | # sleep(3) | ||
| 114 | # daohang() | ||
| 115 | # sleep(3) | ||
| 116 | |||
| 80 | exitLogin() | 117 | exitLogin() |
| 81 | sleep(3) | 118 | sleep(3) |
| 82 | 119 | ... | ... |
| ... | @@ -3,10 +3,16 @@ __author__ = "sifude" | ... | @@ -3,10 +3,16 @@ __author__ = "sifude" |
| 3 | 3 | ||
| 4 | from airtest.core.api import * | 4 | from airtest.core.api import * |
| 5 | 5 | ||
| 6 | def enter(): | 6 | def homePre(): |
| 7 | if(exists(Template(r"tpl1623051624594.png", record_pos=(-0.004, -0.744), resolution=(1080, 2340))) != False): | ||
| 8 | touch(Template(r"tpl1623052352857.png", record_pos=(-0.01, 0.701), resolution=(1080, 2340))) | ||
| 9 | sleep(3) | ||
| 7 | if(exists(Template(r"tpl1623828598507.png", record_pos=(-0.2, 0.133), resolution=(1080, 2340))) != False): | 10 | if(exists(Template(r"tpl1623828598507.png", record_pos=(-0.2, 0.133), resolution=(1080, 2340))) != False): |
| 8 | touch(Template(r"tpl1623828629086.png", record_pos=(-0.2, 0.142), resolution=(1080, 2340))) | 11 | touch(Template(r"tpl1623828629086.png", record_pos=(-0.2, 0.142), resolution=(1080, 2340))) |
| 9 | sleep(3) | 12 | sleep(3) |
| 13 | |||
| 14 | def enter(): | ||
| 15 | homePre() | ||
| 10 | touch(Template(r"tpl1623744754522.png", record_pos=(0.387, 0.86), resolution=(1080, 2340))) | 16 | touch(Template(r"tpl1623744754522.png", record_pos=(0.387, 0.86), resolution=(1080, 2340))) |
| 11 | sleep(3) | 17 | sleep(3) |
| 12 | 18 | ... | ... |
android/setting.air/tpl1623051624594.png
0 → 100644
131 KB
android/setting.air/tpl1623052352857.png
0 → 100644
13.3 KB
android/setting2.air/setting2.py
0 → 100644
| 1 | # -*- encoding=utf8 -*- | ||
| 2 | __author__ = "sifude" | ||
| 3 | |||
| 4 | from airtest.core.api import * | ||
| 5 | |||
| 6 | def gongjiao(): | ||
| 7 | touch(Template(r"tpl1624351712709.png", record_pos=(-0.291, 0.267), resolution=(1080, 2340))) | ||
| 8 | sleep(5) | ||
| 9 | touch(Template(r"tpl1624351738791.png", record_pos=(0.383, 0.919), resolution=(1080, 2340))) | ||
| 10 | sleep(3) | ||
| 11 | |||
| 12 | def shenghuozhoubian(): | ||
| 13 | touch(Template(r"tpl1624351795075.png", record_pos=(0.131, 0.267), resolution=(1080, 2340))) | ||
| 14 | sleep(5) | ||
| 15 | touch(Template(r"tpl1624351819001.png", record_pos=(0.379, 0.917), resolution=(1080, 2340))) | ||
| 16 | sleep(3) | ||
| 17 | |||
| 18 | def tianqi(): | ||
| 19 | touch(Template(r"tpl1624351878758.png", record_pos=(-0.082, 0.434), resolution=(1080, 2340))) | ||
| 20 | sleep(5) | ||
| 21 | touch(Template(r"tpl1624351900026.png", record_pos=(0.381, 0.917), resolution=(1080, 2340))) | ||
| 22 | sleep(3) | ||
| 23 | |||
| 24 | def jibu(): | ||
| 25 | touch(Template(r"tpl1624351938916.png", record_pos=(0.132, 0.437), resolution=(1080, 2340))) | ||
| 26 | sleep(5) | ||
| 27 | touch(Template(r"tpl1624351959610.png", record_pos=(0.381, 0.917), resolution=(1080, 2340))) | ||
| 28 | sleep(3) | ||
| 29 | |||
| 30 | def xinwen(): | ||
| 31 | touch(Template(r"tpl1624352004435.png", record_pos=(-0.295, 0.606), resolution=(1080, 2340))) | ||
| 32 | sleep(5) | ||
| 33 | touch(Template(r"tpl1624352032751.png", record_pos=(0.383, 0.919), resolution=(1080, 2340))) | ||
| 34 | sleep(3) | ||
| 35 | |||
| 36 | def tizhicheng(): | ||
| 37 | swipe(Template(r"tpl1624352099736.png", record_pos=(-0.079, 0.605), resolution=(1080, 2340)), vector=[0.0841, -0.4428]) | ||
| 38 | sleep(3) | ||
| 39 | touch(Template(r"tpl1624352136212.png", record_pos=(-0.293, 0.701), resolution=(1080, 2340))) | ||
| 40 | sleep(5) | ||
| 41 | touch(Template(r"tpl1624352158270.png", record_pos=(0.382, 0.913), resolution=(1080, 2340))) | ||
| 42 | sleep(3) | ||
| 43 | |||
| 44 | def daohang(): | ||
| 45 | touch(Template(r"tpl1624601299295.png", record_pos=(-0.391, 0.868), resolution=(1080, 2340))) | ||
| 46 | sleep(5) | ||
| 47 | text("到天安门怎么走") | ||
| 48 | sleep(5) | ||
| 49 | touch(Template(r"tpl1624601366109.png", record_pos=(0.002, 0.732), resolution=(1080, 2340))) | ||
| 50 | sleep(8) | ||
| 51 | touch(Template(r"tpl1624601393521.png", record_pos=(-0.412, -0.927), resolution=(1080, 2340))) | ||
| 52 | sleep(5) | ||
| 53 | stop_app("com.autonavi.minimap") | ||
| 54 | sleep(5) | ||
| 55 | start_app("com.borui.gsjk") | ||
| 56 | |||
| 57 | |||
| 58 | |||
| 59 | |||
| 60 | |||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
android/setting2.air/tpl1623744754522.png
0 → 100644
13.6 KB
android/setting2.air/tpl1623828598507.png
0 → 100644
8.65 KB
android/setting2.air/tpl1623828629086.png
0 → 100644
9.09 KB
android/setting2.air/tpl1624351712709.png
0 → 100644
14.4 KB
android/setting2.air/tpl1624351738791.png
0 → 100644
13.2 KB
android/setting2.air/tpl1624351795075.png
0 → 100644
12.7 KB
android/setting2.air/tpl1624351819001.png
0 → 100644
13.2 KB
android/setting2.air/tpl1624351878758.png
0 → 100644
11.2 KB
android/setting2.air/tpl1624351900026.png
0 → 100644
13.2 KB
android/setting2.air/tpl1624351938916.png
0 → 100644
10.8 KB
android/setting2.air/tpl1624351959610.png
0 → 100644
13.1 KB
android/setting2.air/tpl1624352004435.png
0 → 100644
11.6 KB
android/setting2.air/tpl1624352032751.png
0 → 100644
13.2 KB
android/setting2.air/tpl1624352099736.png
0 → 100644
12.5 KB
android/setting2.air/tpl1624352136212.png
0 → 100644
15.6 KB
android/setting2.air/tpl1624352158270.png
0 → 100644
13.1 KB
android/setting2.air/tpl1624601299295.png
0 → 100644
12.9 KB
android/setting2.air/tpl1624601366109.png
0 → 100644
10.3 KB
android/setting2.air/tpl1624601393521.png
0 → 100644
3.06 KB
| ... | @@ -3,6 +3,24 @@ __author__ = "zhanghao" | ... | @@ -3,6 +3,24 @@ __author__ = "zhanghao" |
| 3 | 3 | ||
| 4 | from airtest.core.api import * | 4 | from airtest.core.api import * |
| 5 | 5 | ||
| 6 | def loginPre(): | ||
| 7 | if(exists(Template(r"tpl1624517024499.png", record_pos=(-0.005, -0.279), resolution=(750, 1334))) != False): | ||
| 8 | touch(Template(r"tpl1624517072053.png", record_pos=(0.0, 0.083), resolution=(750, 1334))) | ||
| 9 | sleep(3) | ||
| 10 | if(exists(Template(r"tpl1624517111444.png", record_pos=(-0.007, -0.137), resolution=(750, 1334))) != False): | ||
| 11 | touch(Template(r"tpl1624517132360.png", record_pos=(0.177, 0.18), resolution=(750, 1334))) | ||
| 12 | sleep(3) | ||
| 13 | if(exists(Template(r"tpl1624517163344.png", record_pos=(-0.005, -0.119), resolution=(750, 1334))) != False): | ||
| 14 | touch(Template(r"tpl1624517178302.png", record_pos=(0.18, 0.127), resolution=(750, 1334))) | ||
| 15 | sleep(3) | ||
| 16 | swipe(Template(r"tpl1624517299922.png", record_pos=(0.339, -0.148), resolution=(750, 1334)), vector=[-0.6222, -0.0137]) | ||
| 17 | sleep(3) | ||
| 18 | swipe(Template(r"tpl1624517326121.png", record_pos=(0.315, -0.065), resolution=(750, 1334)), vector=[-0.6797, 0.0015]) | ||
| 19 | sleep(3) | ||
| 20 | touch(Template(r"tpl1624517384939.png", record_pos=(-0.001, 0.653), resolution=(750, 1334))) | ||
| 21 | sleep(5) | ||
| 22 | |||
| 23 | |||
| 6 | def login(): | 24 | def login(): |
| 7 | touch(Template(r"tpl1622181202002.png", record_pos=(-0.226, -0.798), resolution=(1080, 2340))) | 25 | touch(Template(r"tpl1622181202002.png", record_pos=(-0.226, -0.798), resolution=(1080, 2340))) |
| 8 | sleep(8) | 26 | sleep(8) |
| ... | @@ -23,5 +41,4 @@ def login(): | ... | @@ -23,5 +41,4 @@ def login(): |
| 23 | if(exists(Template(r"tpl1623058613252.png", record_pos=(-0.001, 0.0), resolution=(750, 1334))) != False): | 41 | if(exists(Template(r"tpl1623058613252.png", record_pos=(-0.001, 0.0), resolution=(750, 1334))) != False): |
| 24 | touch(Template(r"tpl1623058642790.png", record_pos=(-0.188, 0.164), resolution=(750, 1334))) | 42 | touch(Template(r"tpl1623058642790.png", record_pos=(-0.188, 0.164), resolution=(750, 1334))) |
| 25 | sleep(3) | 43 | sleep(3) |
| 26 | |||
| 27 | assert_exists(Template(r"tpl1622181656726.png", record_pos=(0.306, -0.932), resolution=(1080, 2340)), "验证登录正确") | 44 | assert_exists(Template(r"tpl1622181656726.png", record_pos=(0.306, -0.932), resolution=(1080, 2340)), "验证登录正确") | ... | ... |
ios/login.air/tpl1624517024499.png
0 → 100644
38.3 KB
ios/login.air/tpl1624517072053.png
0 → 100644
21.4 KB
ios/login.air/tpl1624517111444.png
0 → 100644
52.8 KB
ios/login.air/tpl1624517132360.png
0 → 100644
4.7 KB
ios/login.air/tpl1624517163344.png
0 → 100644
37.5 KB
ios/login.air/tpl1624517178302.png
0 → 100644
6.43 KB
ios/login.air/tpl1624517299922.png
0 → 100644
21.3 KB
ios/login.air/tpl1624517326121.png
0 → 100644
15 KB
ios/login.air/tpl1624517352092.png
0 → 100644
14.8 KB
ios/login.air/tpl1624517384939.png
0 → 100644
24.6 KB
| ... | @@ -5,10 +5,12 @@ from airtest.core.api import * | ... | @@ -5,10 +5,12 @@ from airtest.core.api import * |
| 5 | using("login.air") | 5 | using("login.air") |
| 6 | using("exitLogin.air") | 6 | using("exitLogin.air") |
| 7 | using("setting.air") | 7 | using("setting.air") |
| 8 | using("setting2.air") | ||
| 8 | 9 | ||
| 9 | from login import login | 10 | from login import login |
| 10 | from exitLogin import exitLogin | 11 | from exitLogin import exitLogin |
| 11 | from setting import * | 12 | from setting import * |
| 13 | from setting2 import * | ||
| 12 | 14 | ||
| 13 | auto_setup(__file__, logdir=True) | 15 | auto_setup(__file__, logdir=True) |
| 14 | connect_device("iOS:///127.0.0.1:8100") | 16 | connect_device("iOS:///127.0.0.1:8100") |
| ... | @@ -75,6 +77,41 @@ sleep(3) | ... | @@ -75,6 +77,41 @@ sleep(3) |
| 75 | # jiankangceping() | 77 | # jiankangceping() |
| 76 | # sleep(3) | 78 | # sleep(3) |
| 77 | 79 | ||
| 80 | enter() | ||
| 81 | sleep(3) | ||
| 82 | gongjiao() | ||
| 83 | sleep(3) | ||
| 84 | |||
| 85 | enter() | ||
| 86 | sleep(3) | ||
| 87 | shenghuozhoubian() | ||
| 88 | sleep(3) | ||
| 89 | |||
| 90 | enter() | ||
| 91 | sleep(3) | ||
| 92 | tianqi() | ||
| 93 | sleep(3) | ||
| 94 | |||
| 95 | enter() | ||
| 96 | sleep(3) | ||
| 97 | jibu() | ||
| 98 | sleep(3) | ||
| 99 | |||
| 100 | enter() | ||
| 101 | sleep(3) | ||
| 102 | xinwen() | ||
| 103 | sleep(3) | ||
| 104 | |||
| 105 | enter() | ||
| 106 | sleep(3) | ||
| 107 | tizhicheng() | ||
| 108 | sleep(3) | ||
| 109 | |||
| 110 | homePre() | ||
| 111 | sleep(3) | ||
| 112 | daohang() | ||
| 113 | sleep(3) | ||
| 114 | |||
| 78 | exitLogin() | 115 | exitLogin() |
| 79 | sleep(3) | 116 | sleep(3) |
| 80 | 117 | ... | ... |
| ... | @@ -3,16 +3,25 @@ __author__ = "sifude" | ... | @@ -3,16 +3,25 @@ __author__ = "sifude" |
| 3 | 3 | ||
| 4 | from airtest.core.api import * | 4 | from airtest.core.api import * |
| 5 | 5 | ||
| 6 | def enter(): | 6 | def homePre(): |
| 7 | if(exists(Template(r"tpl1623828598507.png", record_pos=(-0.2, 0.133), resolution=(1080, 2340))) != False): | 7 | if(exists(Template(r"tpl1623828598507.png", record_pos=(-0.2, 0.133), resolution=(1080, 2340))) != False): |
| 8 | touch(Template(r"tpl1623828629086.png", record_pos=(-0.2, 0.142), resolution=(1080, 2340))) | 8 | touch(Template(r"tpl1623828629086.png", record_pos=(-0.2, 0.142), resolution=(1080, 2340))) |
| 9 | sleep(3) | 9 | sleep(3) |
| 10 | if(exists(Template(r"tpl1623051624594.png", record_pos=(-0.004, -0.744), resolution=(1080, 2340))) != False): | ||
| 11 | touch(Template(r"tpl1623052352857.png", record_pos=(-0.01, 0.701), resolution=(1080, 2340))) | ||
| 12 | sleep(3) | ||
| 13 | |||
| 14 | def enter(): | ||
| 15 | homePre() | ||
| 10 | touch(Template(r"tpl1623744754522.png", record_pos=(0.387, 0.86), resolution=(1080, 2340))) | 16 | touch(Template(r"tpl1623744754522.png", record_pos=(0.387, 0.86), resolution=(1080, 2340))) |
| 11 | sleep(3) | 17 | sleep(3) |
| 12 | 18 | ||
| 13 | def xinlvzice(): | 19 | def xinlvzice(): |
| 14 | touch(Template(r"tpl1623744811046.png", record_pos=(-0.315, -0.38), resolution=(1080, 2340))) | 20 | touch(Template(r"tpl1623744811046.png", record_pos=(-0.315, -0.38), resolution=(1080, 2340))) |
| 15 | sleep(3) | 21 | sleep(3) |
| 22 | if(exists(Template(r"tpl1624517622927.png", record_pos=(-0.003, -0.143), resolution=(750, 1334))) != False): | ||
| 23 | touch(Template(r"tpl1624517660968.png", record_pos=(0.177, 0.147), resolution=(750, 1334))) | ||
| 24 | sleep(3) | ||
| 16 | touch(Template(r"tpl1623985341034.png", record_pos=(-0.004, 0.537), resolution=(750, 1334))) | 25 | touch(Template(r"tpl1623985341034.png", record_pos=(-0.004, 0.537), resolution=(750, 1334))) |
| 17 | if(exists(Template(r"tpl1623748400309.png", record_pos=(0.241, 0.828), resolution=(1080, 2340))) != False): | 26 | if(exists(Template(r"tpl1623748400309.png", record_pos=(0.241, 0.828), resolution=(1080, 2340))) != False): |
| 18 | touch(Template(r"tpl1623748400309.png", record_pos=(0.241, 0.828), resolution=(1080, 2340))) | 27 | touch(Template(r"tpl1623748400309.png", record_pos=(0.241, 0.828), resolution=(1080, 2340))) | ... | ... |
ios/setting.air/tpl1623051624594.png
0 → 100644
131 KB
ios/setting.air/tpl1623052352857.png
0 → 100644
13.3 KB
ios/setting.air/tpl1624517622927.png
0 → 100644
35.1 KB
ios/setting.air/tpl1624517660968.png
0 → 100644
4.21 KB
ios/setting2.air/setting2.py
0 → 100644
| 1 | # -*- encoding=utf8 -*- | ||
| 2 | __author__ = "sifude" | ||
| 3 | |||
| 4 | from airtest.core.api import * | ||
| 5 | |||
| 6 | def gongjiao(): | ||
| 7 | touch(Template(r"tpl1624502844828.png", record_pos=(-0.353, 0.501), resolution=(750, 1334))) | ||
| 8 | sleep(5) | ||
| 9 | touch(Template(r"tpl1624502860987.png", record_pos=(0.389, 0.833), resolution=(750, 1334))) | ||
| 10 | sleep(3) | ||
| 11 | |||
| 12 | def shenghuozhoubian(): | ||
| 13 | touch(Template(r"tpl1624502893965.png", record_pos=(0.112, 0.505), resolution=(750, 1334))) | ||
| 14 | sleep(5) | ||
| 15 | touch(Template(r"tpl1624502913676.png", record_pos=(0.391, 0.836), resolution=(750, 1334))) | ||
| 16 | sleep(3) | ||
| 17 | |||
| 18 | def tianqi(): | ||
| 19 | swipe(Template(r"tpl1624502942329.png", record_pos=(0.117, 0.508), resolution=(750, 1334)), vector=[0.0772, -0.3857]) | ||
| 20 | touch(Template(r"tpl1624502972756.png", record_pos=(-0.119, 0.128), resolution=(750, 1334))) | ||
| 21 | sleep(5) | ||
| 22 | touch(Template(r"tpl1624503006221.png", record_pos=(0.392, 0.835), resolution=(750, 1334))) | ||
| 23 | sleep(3) | ||
| 24 | |||
| 25 | def jibu(): | ||
| 26 | swipe(Template(r"tpl1624502942329.png", record_pos=(0.117, 0.508), resolution=(750, 1334)), vector=[0.0772, -0.3857]) | ||
| 27 | touch(Template(r"tpl1624503054488.png", record_pos=(0.113, 0.128), resolution=(750, 1334))) | ||
| 28 | sleep(5) | ||
| 29 | touch(Template(r"tpl1624503075550.png", record_pos=(0.391, 0.833), resolution=(750, 1334))) | ||
| 30 | sleep(3) | ||
| 31 | |||
| 32 | def xinwen(): | ||
| 33 | swipe(Template(r"tpl1624502942329.png", record_pos=(0.117, 0.508), resolution=(750, 1334)), vector=[0.0772, -0.3857]) | ||
| 34 | touch(Template(r"tpl1624503118336.png", record_pos=(-0.356, 0.351), resolution=(750, 1334))) | ||
| 35 | sleep(5) | ||
| 36 | touch(Template(r"tpl1624503140961.png", record_pos=(0.393, 0.839), resolution=(750, 1334))) | ||
| 37 | sleep(3) | ||
| 38 | |||
| 39 | def tizhicheng(): | ||
| 40 | swipe(Template(r"tpl1624502942329.png", record_pos=(0.117, 0.508), resolution=(750, 1334)), vector=[0.0772, -0.3857]) | ||
| 41 | sleep(3) | ||
| 42 | touch(Template(r"tpl1624503188122.png", record_pos=(-0.356, 0.663), resolution=(750, 1334))) | ||
| 43 | sleep(5) | ||
| 44 | touch(Template(r"tpl1624503207090.png", record_pos=(0.391, 0.836), resolution=(750, 1334))) | ||
| 45 | sleep(3) | ||
| 46 | |||
| 47 | def daohang(): | ||
| 48 | touch(Template(r"tpl1624512184427.png", record_pos=(-0.399, 0.753), resolution=(750, 1334))) | ||
| 49 | sleep(3) | ||
| 50 | text("到天安门怎么走") | ||
| 51 | sleep(5) | ||
| 52 | touch(Template(r"tpl1624512308127.png", record_pos=(-0.001, 0.616), resolution=(750, 1334))) | ||
| 53 | sleep(10) | ||
| 54 | touch(Template(r"tpl1624512545121.png", record_pos=(-0.417, 0.779), resolution=(750, 1334))) | ||
| 55 | sleep(3) | ||
| 56 | touch(Template(r"tpl1624512563559.png", record_pos=(-0.252, 0.776), resolution=(750, 1334))) | ||
| 57 | sleep(5) | ||
| 58 | stop_app("com.autonavi.amap") | ||
| 59 | sleep(5) | ||
| 60 | start_app("com.borui.xiaojian") | ||
| 61 | sleep(5) | ||
| 62 | |||
| 63 | |||
| 64 | |||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
ios/setting2.air/tpl1624502844828.png
0 → 100644
8.58 KB
ios/setting2.air/tpl1624502860987.png
0 → 100644
7.01 KB
ios/setting2.air/tpl1624502893965.png
0 → 100644
8.67 KB
ios/setting2.air/tpl1624502913676.png
0 → 100644
6.94 KB
ios/setting2.air/tpl1624502942329.png
0 → 100644
8.75 KB
ios/setting2.air/tpl1624502972756.png
0 → 100644
6.59 KB
ios/setting2.air/tpl1624503006221.png
0 → 100644
6.97 KB
ios/setting2.air/tpl1624503054488.png
0 → 100644
6.37 KB
ios/setting2.air/tpl1624503075550.png
0 → 100644
7 KB
ios/setting2.air/tpl1624503118336.png
0 → 100644
7.53 KB
ios/setting2.air/tpl1624503140961.png
0 → 100644
6.93 KB
ios/setting2.air/tpl1624503188122.png
0 → 100644
9.04 KB
ios/setting2.air/tpl1624503207090.png
0 → 100644
6.91 KB
ios/setting2.air/tpl1624512184427.png
0 → 100644
7.58 KB
ios/setting2.air/tpl1624512267606.png
0 → 100644
9.43 KB
ios/setting2.air/tpl1624512308127.png
0 → 100644
16.1 KB
ios/setting2.air/tpl1624512545121.png
0 → 100644
4.01 KB
ios/setting2.air/tpl1624512563559.png
0 → 100644
15.3 KB
-
Please register or sign in to post a comment