From b83e0fee340e4e3748c155565697b515f924aa3f Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Wed, 28 Nov 2018 22:03:22 +0800 Subject: glbenchmark25.py: workaround to run with Pie build Change-Id: I702aad1b2e20b9ec099cf9fee5698a01e96fa539 Signed-off-by: Yongqin Liu --- automated/android/apk-automation/glbenchmark25.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/automated/android/apk-automation/glbenchmark25.py b/automated/android/apk-automation/glbenchmark25.py index e5bb116..9853a84 100755 --- a/automated/android/apk-automation/glbenchmark25.py +++ b/automated/android/apk-automation/glbenchmark25.py @@ -41,6 +41,7 @@ class ApkRunnerImpl(ApkTestRunner): self.dump_always() select_all_btn = self.vc.findViewWithText("All") display_tests_menu = self.vc.findViewWithText("Performance Tests") + warn_msg = 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 select_all_btn: select_all_btn.touch() self.logger.info("All selected!") @@ -48,6 +49,10 @@ class ApkRunnerImpl(ApkTestRunner): elif display_tests_menu: display_tests_menu.touch() self.logger.info("Display all tests to select all") + elif warn_msg: + self.logger.info("Older version warning popped up") + warning_ok_btn = self.vc.findViewWithTextOrRaise(u'OK') + warning_ok_btn.touch() else: # continue pass -- cgit v1.2.3