Skip to content

Commit 605612b

Browse files
committed
Aitutu: Adding support for the Samsung devices
1 parent 9aec485 commit 605612b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
51 Bytes
Binary file not shown.

wa/workloads/aitutu/uiauto/app/src/main/java/com/arm/wa/uiauto/aitutu/UiAutomation.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,19 @@ public void extractResults() throws Exception {
6060
public void clearPopups() throws Exception {
6161
UiSelector selector = new UiSelector();
6262

63+
UiObject next = mDevice.findObject(selector.textContains("NEXT")
64+
.className("android.widget.Button"));
65+
next.waitForExists(60000);
66+
if (next.exists()){
67+
next.click();
68+
}
69+
6370
UiObject cancel = mDevice.findObject(selector.textContains("CANCEL")
6471
.className("android.widget.Button"));
6572
cancel.waitForExists(60000);
6673
if (cancel.exists()){
6774
cancel.click();
6875
}
69-
//waitObject(cancel);
70-
//cancel.click();
7176
}
7277

7378
public void downloadAssets() throws Exception {

0 commit comments

Comments
 (0)