mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	Antutu: Updating to handle the new shortcut popup
Added logic to dismiss the new popup message which asks to add a shortcut to the android homescreen.
This commit is contained in:
		
				
					committed by
					
						 Marc Bonnici
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							6beac11ee2
						
					
				
				
					commit
					35ce87068c
				
			
										
											Binary file not shown.
										
									
								
							| @@ -45,6 +45,7 @@ public class UiAutomation extends BaseUiAutomation { | |||||||
|     @Test |     @Test | ||||||
|     public void setup() throws Exception { |     public void setup() throws Exception { | ||||||
|        dismissAndroidVersionPopup(); |        dismissAndroidVersionPopup(); | ||||||
|  |        clearPopups(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Test |     @Test | ||||||
| @@ -65,6 +66,15 @@ public class UiAutomation extends BaseUiAutomation { | |||||||
|         sleep(1); |         sleep(1); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     public void clearPopups() throws Exception { | ||||||
|  |         UiObject cancel = | ||||||
|  |             mDevice.findObject(new UiSelector().textContains("CANCEL")); | ||||||
|  |         cancel.waitForExists(5000); | ||||||
|  |         if (cancel.exists()){ | ||||||
|  |             cancel.click(); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|     public void waitforCompletion() throws Exception { |     public void waitforCompletion() throws Exception { | ||||||
|         UiObject totalScore = |         UiObject totalScore = | ||||||
|             mDevice.findObject(new UiSelector().resourceId("com.antutu.ABenchMark:id/textViewTotalScore")); |             mDevice.findObject(new UiSelector().resourceId("com.antutu.ABenchMark:id/textViewTotalScore")); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user