File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
uiauto/app/src/main/java/com/arm/wa/uiauto/aitutu Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments