mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 12:28:44 +00:00
Merge pull request #270 from jimboatarm/adobereader-s7fix
AdobeReader: Fails on S7 due to search icons being a different class.
This commit is contained in:
commit
fa7d89d734
Binary file not shown.
0
wlauto/workloads/adobereader/uiauto/build.xml
Executable file → Normal file
0
wlauto/workloads/adobereader/uiauto/build.xml
Executable file → Normal file
@ -105,9 +105,11 @@ public class UiAutomation extends UxPerfUiAutomation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Click the button to search from the present file list view
|
// Click the button to search from the present file list view
|
||||||
UiObject searchButton = getUiObjectByResourceId(packageID + "split_pane_search",
|
UiObject searchButton =
|
||||||
"android.widget.TextView",
|
new UiObject(new UiSelector().resourceId(packageID + "split_pane_search"));
|
||||||
TimeUnit.SECONDS.toMillis(10));
|
if (!searchButton.waitForExists(TimeUnit.SECONDS.toMillis(10))) {
|
||||||
|
throw new UiObjectNotFoundException("Could not find search button");
|
||||||
|
}
|
||||||
searchButton.click();
|
searchButton.click();
|
||||||
|
|
||||||
// Enter search text into the file searchBox. This will automatically filter the list.
|
// Enter search text into the file searchBox. This will automatically filter the list.
|
||||||
@ -193,8 +195,7 @@ public class UiAutomation extends UxPerfUiAutomation {
|
|||||||
// and if not, tap again before continuing
|
// and if not, tap again before continuing
|
||||||
tapDisplayCentre();
|
tapDisplayCentre();
|
||||||
UiObject searchIcon =
|
UiObject searchIcon =
|
||||||
new UiObject(new UiSelector().resourceId(packageID + "document_view_search_icon")
|
new UiObject(new UiSelector().resourceId(packageID + "document_view_search_icon"));
|
||||||
.className("android.widget.TextView"));
|
|
||||||
if (!searchIcon.waitForExists(uiAutoTimeout)) {
|
if (!searchIcon.waitForExists(uiAutoTimeout)) {
|
||||||
tapDisplayCentre();
|
tapDisplayCentre();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user