mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00:00
workloads/aitutu: Handle additional popup on launch
Allow agreeing to an updated Terms agreement on launch
This commit is contained in:
parent
18439e3b31
commit
92e253d838
Binary file not shown.
@ -58,6 +58,14 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void clearPopups() throws Exception {
|
public void clearPopups() throws Exception {
|
||||||
|
|
||||||
|
UiObject agreement =
|
||||||
|
mDevice.findObject(new UiSelector().textContains("NEXT"));
|
||||||
|
agreement.waitForExists(5000);
|
||||||
|
if (agreement.exists()) {
|
||||||
|
agreement.click();
|
||||||
|
}
|
||||||
|
|
||||||
UiSelector selector = new UiSelector();
|
UiSelector selector = new UiSelector();
|
||||||
|
|
||||||
UiObject cancel = mDevice.findObject(selector.textContains("CANCEL")
|
UiObject cancel = mDevice.findObject(selector.textContains("CANCEL")
|
||||||
@ -66,8 +74,6 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
if (cancel.exists()){
|
if (cancel.exists()){
|
||||||
cancel.click();
|
cancel.click();
|
||||||
}
|
}
|
||||||
//waitObject(cancel);
|
|
||||||
//cancel.click();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void downloadAssets() throws Exception {
|
public void downloadAssets() throws Exception {
|
||||||
@ -106,7 +112,7 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
.getChild(selector.index(4))
|
.getChild(selector.index(4))
|
||||||
.getChild(selector.resourceId("com.antutu.aibenchmark:id/textViewAIModelName"));
|
.getChild(selector.resourceId("com.antutu.aibenchmark:id/textViewAIModelName"));
|
||||||
//Log the scores and models
|
//Log the scores and models
|
||||||
UiObject totalScore =
|
UiObject totalScore =
|
||||||
mDevice.findObject(selector.resourceId("com.antutu.aibenchmark:id/textViewTotalScore"));
|
mDevice.findObject(selector.resourceId("com.antutu.aibenchmark:id/textViewTotalScore"));
|
||||||
Log.d(TAG, "Overall Score " + totalScore.getText());
|
Log.d(TAG, "Overall Score " + totalScore.getText());
|
||||||
UiObject imageTotal =
|
UiObject imageTotal =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user