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:
parent
cd3d08dae9
commit
99d1b7d14c
Binary file not shown.
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user