mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 09:02:12 +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
					
				
			
			
				
	
			
			
			
						parent
						
							6beac11ee2
						
					
				
				
					commit
					35ce87068c
				
			
										
											Binary file not shown.
										
									
								
							@@ -44,7 +44,8 @@ public class UiAutomation extends BaseUiAutomation {
 | 
			
		||||
 | 
			
		||||
    @Test
 | 
			
		||||
    public void setup() throws Exception {
 | 
			
		||||
        dismissAndroidVersionPopup();
 | 
			
		||||
       dismissAndroidVersionPopup();
 | 
			
		||||
       clearPopups();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Test
 | 
			
		||||
@@ -65,6 +66,15 @@ public class UiAutomation extends BaseUiAutomation {
 | 
			
		||||
        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 {
 | 
			
		||||
        UiObject totalScore =
 | 
			
		||||
            mDevice.findObject(new UiSelector().resourceId("com.antutu.ABenchMark:id/textViewTotalScore"));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user