blob: 67e920ebed1d399733ab44a194c3b9d9ef76788e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Author: Botao Sun <botao.sun@linaro.org>
# First touch on GLBenchmark
import time
import re
from com.dtmilano.android.viewclient import ViewClient
device, serialno = ViewClient.connectToDeviceOrExit()
vc = ViewClient(device, serialno)
time.sleep(2)
apps_tab = vc.findViewWithContentDescriptionOrRaise(re.compile('Apps'))
apps_tab.touch()
time.sleep(5)
vc.dump(window='-1')
target_app = vc.findViewWithText("GLBenchmark 2.5.1")
if target_app:
target_app.touch()
print "GLBenchmark 2.5.1 touched!"
time.sleep(15)
device.press('KEYCODE_BACK')
time.sleep(3)
|