mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
Antutu: Updating to handle the new shortcut popup
Added logic to dismiss the new popup message which asks to add a shortcut to the android homescreen.
This commit is contained in:
parent
6beac11ee2
commit
35ce87068c
Binary file not shown.
@ -44,7 +44,8 @@ public class UiAutomation extends BaseUiAutomation {
|
||||
|
||||
@Test
|
||||
public void setup() throws Exception {
|
||||
dismissAndroidVersionPopup();
|
||||
dismissAndroidVersionPopup();
|
||||
clearPopups();
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -65,6 +66,15 @@ public class UiAutomation extends BaseUiAutomation {
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
public void clearPopups() throws Exception {
|
||||
UiObject cancel =
|
||||
mDevice.findObject(new UiSelector().textContains("CANCEL"));
|
||||
cancel.waitForExists(5000);
|
||||
if (cancel.exists()){
|
||||
cancel.click();
|
||||
}
|
||||
}
|
||||
|
||||
public void waitforCompletion() throws Exception {
|
||||
UiObject totalScore =
|
||||
mDevice.findObject(new UiSelector().resourceId("com.antutu.ABenchMark:id/textViewTotalScore"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user