From fc8829733544431c9ca7a4058c11676c9804a984 Mon Sep 17 00:00:00 2001 From: jerrylizilong Date: Wed, 22 May 2019 15:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=87=8D=E8=AF=95=E4=B8=8A?= =?UTF-8?q?=E5=88=92=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/atx_steps.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/core/atx_steps.py b/app/core/atx_steps.py index 7048a50..9808a3b 100644 --- a/app/core/atx_steps.py +++ b/app/core/atx_steps.py @@ -112,6 +112,7 @@ class atx_driver(): time.sleep(1) else: log.log().logger.error(u"出错了,没有找到元素! by %s , %s" %(method,resource_id)) + u.swipe_points([(0.509, 0.601), (0.503, 0.149)], 0.2) result = '2' elif method== 'name': if u(text=resource_id).exists: @@ -122,6 +123,7 @@ class atx_driver(): time.sleep(1) else: log.log().logger.error(u"出错了,没有找到元素! by %s , %s" % (method, resource_id)) + u.swipe_points([(0.509, 0.601), (0.503, 0.149)], 0.2) result = '2' elif method== 'class': if u(className=resource_id).exists: @@ -132,6 +134,7 @@ class atx_driver(): time.sleep(1) else: log.log().logger.error(u"出错了,没有找到元素! by %s , %s" % (method, resource_id)) + u.swipe_points([(0.509, 0.601), (0.503, 0.149)], 0.2) result = '2' else: log.log().logger.error(u"元素方法未定义! %s" %method) @@ -158,6 +161,7 @@ class atx_driver(): result = '1' else: log.log().logger.error(u"出错了,没有找到元素! by %s , %s" % ('text', text)) + u.swipe_points([(0.509, 0.601), (0.503, 0.149)], 0.2) result = '2' return u,result @@ -169,6 +173,7 @@ class atx_driver(): result = '1' else: log.log().logger.error(u"出错了,没有找到元素! by %s , %s" % ('id', id)) + u.swipe_points([(0.509, 0.601), (0.503, 0.149)], 0.2) result = '2' return u, result @@ -180,6 +185,7 @@ class atx_driver(): result = '1' else: log.log().logger.error(u"出错了,没有找到元素! by %s , %s" % ('description', id)) + u.swipe_points([(0.509, 0.601), (0.503, 0.149)], 0.2) result = '2' return u, result @@ -191,6 +197,7 @@ class atx_driver(): result = '1' else: log.log().logger.error(u"出错了,没有找到元素! by %s , %s" % ('className', id)) + u.swipe_points([(0.509, 0.601), (0.503, 0.149)], 0.2) result = '2' return u, result