mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +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:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user