1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-14 06:38:36 +00:00

Merge 605612b506dbd152fe5bb43e4d0e0f40ec12dfff into 35ce87068ca96cbf4aef65d9aa8b4e0c9d0c2f98

This commit is contained in:
Scott 2019-09-24 09:04:41 +00:00 committed by GitHub
commit 98302d598a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -60,14 +60,19 @@ public class UiAutomation extends BaseUiAutomation {
public void clearPopups() throws Exception {
UiSelector selector = new UiSelector();
UiObject next = mDevice.findObject(selector.textContains("NEXT")
.className("android.widget.Button"));
next.waitForExists(60000);
if (next.exists()){
next.click();
}
UiObject cancel = mDevice.findObject(selector.textContains("CANCEL")
.className("android.widget.Button"));
cancel.waitForExists(60000);
if (cancel.exists()){
cancel.click();
}
//waitObject(cancel);
//cancel.click();
}
public void downloadAssets() throws Exception {