1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 03:12:34 +01:00

workloads/uiauto: Update workloads to dismiss android version warning

Update workloads that use uiautomator and can display a warning about
using an old version of the app to dismiss the popup if present.
This commit is contained in:
Marc Bonnici
2018-10-24 09:17:48 +01:00
committed by setrofim
parent 7632ee8288
commit dead312ff7
12 changed files with 18 additions and 24 deletions

View File

@@ -62,7 +62,7 @@ public class UiAutomation extends BaseUiAutomation {
@Test
public void setup() throws Exception {
dismissPopUp();
dismissAndroidVersionPopup();
dismissEULA();
if (version.equals("2.0.3")) {
dissmissWelcomebanner();
@@ -307,14 +307,4 @@ 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();
}
}
}