diff --git a/wlauto/workloads/skype/com.arm.wlauto.uiauto.skype.jar b/wlauto/workloads/skype/com.arm.wlauto.uiauto.skype.jar index fd6704aa..ef1e7917 100644 Binary files a/wlauto/workloads/skype/com.arm.wlauto.uiauto.skype.jar and b/wlauto/workloads/skype/com.arm.wlauto.uiauto.skype.jar differ diff --git a/wlauto/workloads/skype/uiauto/src/com/arm/wlauto/uiauto/UiAutomation.java b/wlauto/workloads/skype/uiauto/src/com/arm/wlauto/uiauto/UiAutomation.java index 9d64cd37..c845844d 100755 --- a/wlauto/workloads/skype/uiauto/src/com/arm/wlauto/uiauto/UiAutomation.java +++ b/wlauto/workloads/skype/uiauto/src/com/arm/wlauto/uiauto/UiAutomation.java @@ -58,6 +58,7 @@ public class UiAutomation extends UxPerfUiAutomation { // Run tests handleLoginScreen(loginName, loginPass); + dismissUpdatePopupIfPresent(); searchForContact(contactName); if (ACTION_VOICE.equalsIgnoreCase(callType)) { @@ -86,6 +87,22 @@ public class UiAutomation extends UxPerfUiAutomation { signinButton.clickAndWaitForNewWindow(); } + public void dismissUpdatePopupIfPresent() throws Exception { + UiObject updateNotice = + new UiObject(new UiSelector().resourceId(packageID + "update_notice_dont_show_again")); + + //Detect if the update notice popup is present + if (updateNotice.waitForExists(uiAutoTimeout)) { + //Stop the notice from reappearing + updateNotice.click(); + + UiObject contiuneButton = getUiObjectByText("Continue", "android.widget.Button"); + if (contiuneButton.exists()) { + contiuneButton.click(); + } + } + } + public void searchForContact(String name) throws Exception { UiObject menuSearch = new UiObject(new UiSelector().resourceId(packageID + "menu_search")); boolean sharingResource = false;