mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-30 06:25:20 +01: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
wlauto/workloads/googleslides
com.arm.wlauto.uiauto.googleslides.uiautoapk
uiauto/app/src/main/java/com/arm/wlauto/uiauto/googleslides
Binary file not shown.
@ -308,7 +308,10 @@ public class UiAutomation extends UxPerfUiAutomation {
|
|||||||
ActionLogger logger = new ActionLogger(testTag, parameters);
|
ActionLogger logger = new ActionLogger(testTag, parameters);
|
||||||
logger.start();
|
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, "Settings", true);
|
||||||
clickUiObject(BY_TEXT, "Create PowerPoint");
|
clickUiObject(BY_TEXT, "Create PowerPoint");
|
||||||
mDevice.pressBack();
|
mDevice.pressBack();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user