Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified wa/workloads/aitutu/com.arm.wa.uiauto.aitutu.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,19 @@ public void extractResults() throws Exception {
public void clearPopups() throws Exception {
UiSelector selector = new UiSelector();

UiObject next = mDevice.findObject(selector.textContains("NEXT")
.className("android.widget.Button"));
next.waitForExists(60000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

60 seconds seems to be a very long timeout for something that is only present on some devices. Is there an extra 0 here?

if (next.exists()){
next.click();
}

UiObject cancel = mDevice.findObject(selector.textContains("CANCEL")
.className("android.widget.Button"));
cancel.waitForExists(60000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this also be changed?

if (cancel.exists()){
cancel.click();
}
//waitObject(cancel);
//cancel.click();
}

public void downloadAssets() throws Exception {
Expand Down