1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 20:11:20 +00:00

Merge pull request #513 from jimboatarm/androbench_update

Androbench: Updating Versions
This commit is contained in:
setrofim 2017-10-11 15:36:08 +01:00 committed by GitHub
commit 5a70ab8534
2 changed files with 7 additions and 1 deletions

View File

@ -43,7 +43,13 @@ public void runUiAutomation() throws Exception {
sleep(3);
UiObject btn_microbench = mDevice.findObject(selector.textContains("Micro")
.className("android.widget.Button"));
btn_microbench.click();
if (btn_microbench.exists()) {
btn_microbench.click();
} else {
UiObject bench =
mDevice.findObject(new UiSelector().resourceIdMatches("com.andromeda.androbench2:id/btnStartingBenchmarking"));
bench.click();
}
UiObject btn_yes= mDevice.findObject(selector.textContains("Yes")
.className("android.widget.Button"));