1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

workloads/vellamo: Close warning popup message to run on Android Q

While attempting to run vellamo on Android Q, a popup warning with
the message, "This app was built for an older version of Android and may not
work properly. Try checking for updates, or contact the developer." would
appear, causing the workload to halt.

Close the popup warning before dismissing EULA and executing the remaining
steps to run vellamo.

Tested with vellamo apk version 3.2.4.

Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
This commit is contained in:
Lisa Nguyen 2018-10-22 16:44:44 -07:00 committed by Marc Bonnici
parent f64aaf64a0
commit 8f6b1a7fae
2 changed files with 11 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public class UiAutomation extends BaseUiAutomation {
@Test
public void setup() throws Exception {
dismissPopUp();
dismissEULA();
if (version.equals("2.0.3")) {
dissmissWelcomebanner();
@ -306,4 +307,14 @@ public class UiAutomation extends BaseUiAutomation {
noButton.click();
}
}
public void dismissPopUp() throws Exception {
UiSelector selector = new UiSelector();
UiObject okButton =
mDevice.findObject(selector.className("android.widget.Button").text("OK"));
if (okButton.exists()) {
okButton.click();
}
}
}