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

Merge pull request #16 from jimboatarm/fudge

Deal with Reader PDF search on the Yoga Tab 3
This commit is contained in:
McGeagh 2016-05-11 12:18:26 +01:00
commit 74257fc520
2 changed files with 8 additions and 1 deletions

View File

@ -283,7 +283,14 @@ public class UiAutomation extends UxPerfUiAutomation {
getUiDevice().getInstance().pressSearch();
Timer result = new Timer();
result.start();
getUiDevice().getInstance().pressEnter();
// Deal with the Yoga Tab 3 special case which does not handle Enter keys in search boxes
String productName = getUiDevice().getProductName();
if (productName.equals("YT3_10_row_wifi")) {
tapDisplay(2370, 1100);
} else {
getUiDevice().getInstance().pressEnter();
}
// Check the progress bar icon. When this disappears the search is complete.
UiObject progressBar = new UiObject(new UiSelector().resourceId("com.adobe.reader:id/searchProgress")