mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-21 01:59:13 +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
e87984e19f
Binary file not shown.
@ -44,7 +44,8 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void setup() throws Exception {
|
public void setup() throws Exception {
|
||||||
dismissAndroidVersionPopup();
|
dismissAndroidVersionPopup();
|
||||||
|
clearPopups();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -65,6 +66,15 @@ public class UiAutomation extends BaseUiAutomation {
|
|||||||
sleep(1);
|
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 {
|
public void waitforCompletion() throws Exception {
|
||||||
UiObject totalScore =
|
UiObject totalScore =
|
||||||
mDevice.findObject(new UiSelector().resourceId("com.antutu.ABenchMark:id/textViewTotalScore"));
|
mDevice.findObject(new UiSelector().resourceId("com.antutu.ABenchMark:id/textViewTotalScore"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user