mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
workloads/googleplaybooks: Fix ui match
The resource id of the book list cannot always be discovered, search for the only scrollable list instead.
This commit is contained in:
parent
29a5a7fd43
commit
d1e960e9b0
Binary file not shown.
@ -233,8 +233,7 @@ public class UiAutomation extends BaseUiAutomation implements ApplaunchInterface
|
||||
mDevice.findObject(new UiSelector().resourceId("com.android.vending:id/search_results_list"));
|
||||
if (!resultList.waitForExists(viewTimeout)) {
|
||||
resultList =
|
||||
mDevice.findObject(new UiSelector().className("android.support.v7.widget.RecyclerView")
|
||||
.scrollable(true));
|
||||
mDevice.findObject(new UiSelector().scrollable(true));
|
||||
if (!resultList.waitForExists(viewTimeout)) {
|
||||
throw new UiObjectNotFoundException("Could not find search results list.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user