aboutsummaryrefslogtreecommitdiff
path: root/automated/android
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2019-09-26 16:44:54 +0100
committermwasilew <milosz.wasilewski@linaro.org>2019-09-26 17:58:31 +0100
commit34692db6cf7a453a6fcdf873b8c6d8299f3449df (patch)
tree6c5561a5e6c8407a5aeb1f6978ac4a8ba869d925 /automated/android
parent2258cfeb11361a11e989b3ebc34a34c3fa291917 (diff)
automated/android: close popup when running Gears
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'automated/android')
-rwxr-xr-xautomated/android/apk-automation/gearses2eclair.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/automated/android/apk-automation/gearses2eclair.py b/automated/android/apk-automation/gearses2eclair.py
index 4390f13..4a49bc0 100755
--- a/automated/android/apk-automation/gearses2eclair.py
+++ b/automated/android/apk-automation/gearses2eclair.py
@@ -13,6 +13,12 @@ class ApkRunnerImpl(ApkTestRunner):
def execute(self):
self.logger.info('Running GearsES2eclair for 60 seconds...')
+ self.dump_always()
+
+ message_obj = self.vc.findViewWithText(u'This app was built for an older version of Android and may not work properly. Try checking for updates, or contact the developer.')
+ if message_obj:
+ button1 = self.vc.findViewWithTextOrRaise(u'OK')
+ button1.touch()
time.sleep(60)
def parseResult(self):