summaryrefslogtreecommitdiff
path: root/glbenchmark-2.5.1/glbenchmark_first_launch.py
diff options
context:
space:
mode:
Diffstat (limited to 'glbenchmark-2.5.1/glbenchmark_first_launch.py')
-rwxr-xr-xglbenchmark-2.5.1/glbenchmark_first_launch.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/glbenchmark-2.5.1/glbenchmark_first_launch.py b/glbenchmark-2.5.1/glbenchmark_first_launch.py
index 1a153d2..67e920e 100755
--- a/glbenchmark-2.5.1/glbenchmark_first_launch.py
+++ b/glbenchmark-2.5.1/glbenchmark_first_launch.py
@@ -15,9 +15,10 @@ time.sleep(5)
vc.dump(window='-1')
target_app = vc.findViewWithText("GLBenchmark 2.5.1")
-target_app.touch()
-print "GLBenchmark 2.5.1 touched!"
-time.sleep(15)
+if target_app:
+ target_app.touch()
+ print "GLBenchmark 2.5.1 touched!"
+ time.sleep(15)
device.press('KEYCODE_BACK')
time.sleep(3)