mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00: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:
parent
f64aaf64a0
commit
8f6b1a7fae
Binary file not shown.
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user