mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-10-30 14:44:09 +00:00
Move confirmAccess method to UxPerfUiAutomation
Move confirmAccess method out of reader and skype workloads into UxPerfUiAutomation base class for code reuse. Amend project properties for reader workload to use SDK version 18. Update jar files appropriately.
This commit is contained in:
Binary file not shown.
@@ -77,16 +77,6 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
signinButton.clickAndWaitForNewWindow();
|
||||
}
|
||||
|
||||
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"));
|
||||
// Some devices request multiple permisson rights so clear them all here
|
||||
while (allowButton.waitForExists(timeout)) {
|
||||
allowButton.clickAndWaitForNewWindow(timeout);
|
||||
}
|
||||
}
|
||||
|
||||
private void selectContact(String name, String id) throws Exception {
|
||||
Timer timer = new Timer();
|
||||
timer.start();
|
||||
@@ -150,5 +140,4 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
exitDumpsysGfxInfo(PACKAGE, new File(outputDir, dumpsysTag + "_gfxInfo.log"));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user