1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-14 14:48:53 +00:00

Fix for Skype on particular devices and updated jar files

Some devices issue a pop up to confirm local file access which needs to be handled.
This commit is contained in:
James Hartley 2016-05-05 23:40:59 +01:00
parent c624979caa
commit 26443f66cc
4 changed files with 10 additions and 0 deletions

View File

@ -49,6 +49,7 @@ public class UiAutomation extends UxPerfUiAutomation {
// Run tests
handleLoginScreen(loginName, loginPass);
confirmLocalFileAccess();
selectContact(contactName, contactSkypeId);
if ("video".equalsIgnoreCase(callType)) {
videoCallTest(callDuration);
@ -76,6 +77,15 @@ public class UiAutomation extends UxPerfUiAutomation {
signinButton.clickAndWaitForNewWindow();
}
private void confirmLocalFileAccess() throws Exception {
// First time run requires confirmation to allow access to local files
UiObject allowButton = new UiObject(new UiSelector().textContains("Allow")
.className("android.widget.Button"));
if (allowButton.waitForExists(timeout)) {
allowButton.clickAndWaitForNewWindow(timeout);
}
}
private void selectContact(String name, String id) throws Exception {
Timer timer = new Timer();
timer.start();