mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-29 22:24:51 +00:00 
			
		
		
		
	AppShare: Added check to see if additional back press is required.
On some devices after signing into skype, the back button press only hides the keyboard and a second is required to return to the previous app.
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -60,6 +60,14 @@ public class UiAutomation extends UxPerfUiAutomation { | ||||
|         // Skype won't allow us to login and share on first visit so invoke | ||||
|         // once more from googlephotos | ||||
|         pressBack(); | ||||
|  | ||||
|         // On some devices the first back press only hides the keyboard, check if | ||||
|         // another is needed. | ||||
|         UiObject googlephotosShare = new UiObject(new UiSelector().packageName( | ||||
|                                       parameters.getString("googlephotos_package"))); | ||||
|         if (!googlephotosShare.exists()){ | ||||
|             pressBack(); | ||||
|         } | ||||
|         sendToSkype(contactName); | ||||
|  | ||||
|         unsetScreenOrientation(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user