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:
Binary file not shown.
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user