1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01:00

Fix adobereader on S7

Tested on S7
This commit is contained in:
James Hartley 2016-12-15 15:04:07 +00:00
parent b1e375a676
commit f76c00dd99

View File

@ -266,7 +266,7 @@ public class UiAutomation extends UxPerfUiAutomation {
// Return from the document view to the file list view by pressing home and my documents.
UiObject actionBar =
new UiObject(new UiSelector().resourceIdMatches(".*action_bar.*")
.className("android.view.View"));
.classNameMatches("android.view.View.*"));
if (!actionBar.exists()){
tapDisplayCentre();
}
@ -274,14 +274,13 @@ public class UiAutomation extends UxPerfUiAutomation {
UiObject homeButton =
new UiObject(new UiSelector().resourceId("android:id/home")
.className("android.widget.ImageView"));
//Newer version of app have a menu button instead of home button.
// Newer version of app have a menu button instead of home button.
UiObject menuButton =
new UiObject(new UiSelector().description("Navigate up")
.classNameMatches("android.widget.Image.*"));
if (menuButton.exists()){
menuButton.clickAndWaitForNewWindow();
if (homeButton.exists()){
homeButton.clickAndWaitForNewWindow();
}
else if (menuButton.exists()){
menuButton.clickAndWaitForNewWindow();