1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-30 06:34:13 +00:00

Fixes for Reader/Gmail/Skype

Yet more subtle changes to allow them to run on more devices.
This commit is contained in:
James Hartley
2016-05-09 14:56:25 +01:00
parent 26443f66cc
commit 92e4d41f69
6 changed files with 17 additions and 9 deletions

View File

@@ -49,7 +49,7 @@ public class UiAutomation extends UxPerfUiAutomation {
// Run tests
handleLoginScreen(loginName, loginPass);
confirmLocalFileAccess();
confirmAccess();
selectContact(contactName, contactSkypeId);
if ("video".equalsIgnoreCase(callType)) {
videoCallTest(callDuration);
@@ -77,11 +77,12 @@ public class UiAutomation extends UxPerfUiAutomation {
signinButton.clickAndWaitForNewWindow();
}
private void confirmLocalFileAccess() throws Exception {
private void confirmAccess() 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)) {
// Some devices request multiple permisson rights so clear them all here
while (allowButton.waitForExists(timeout)) {
allowButton.clickAndWaitForNewWindow(timeout);
}
}