|
|
@@ -15,6 +15,10 @@ def offDuty():
|
|
|
def onDuty():
|
|
|
# 上班工作台
|
|
|
touch(Template('./img/gzt_white.png'))
|
|
|
+ sleep(1)
|
|
|
+ # 点击考勤
|
|
|
+ touch(Template('./img/checking_white.png'))
|
|
|
+ sleep(1)
|
|
|
|
|
|
def main():
|
|
|
try:
|
|
|
@@ -24,8 +28,9 @@ def main():
|
|
|
# 打开d钉钉
|
|
|
wda.start_app(DD_BUNDLE_ID)
|
|
|
sleep(1)
|
|
|
- offDuty()
|
|
|
- wda.snapshot('test4.png')
|
|
|
+ onDuty()
|
|
|
+ sleep(1)
|
|
|
+ wda.snapshot('test5.png')
|
|
|
|
|
|
except Exception as es:
|
|
|
print('操作错误',es)
|