mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
Googleslides: Add workaround for opening navigation drawer
On Android N running under the instrumentation uiautomator appears to have trouble retrieving the root node for the home screen of google slides. Therefore we open the navigation drawer via a swipe which allows the node to be found again.
This commit is contained in:
parent
89aa3e1208
commit
a7ed00d9ed
Binary file not shown.
@ -308,7 +308,10 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
ActionLogger logger = new ActionLogger(testTag, parameters);
|
||||
logger.start();
|
||||
|
||||
clickUiObject(BY_DESC, "Open navigation drawer");
|
||||
// Work around to open navigation drawer via swipe.
|
||||
uiDeviceSwipeHorizontal(0, getDisplayCentreWidth(), getDisplayCentreHeight() / 2, 10);
|
||||
|
||||
// clickUiObject(BY_DESC, "Open navigation drawer");
|
||||
clickUiObject(BY_TEXT, "Settings", true);
|
||||
clickUiObject(BY_TEXT, "Create PowerPoint");
|
||||
mDevice.pressBack();
|
||||
|
Loading…
x
Reference in New Issue
Block a user