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

Deal with Reader PDF search on the Yoga Tab 3

This device does not accept 'Enter' or 'Search' Key Events to initiate the search so reluctantly having to use coordinates in this special case.
This commit is contained in:
James Hartley 2016-05-11 12:11:47 +01:00
parent cd3d08dae9
commit 99d1b7d14c
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")