mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	pcmark: Check for description instead of text in installbenchmark
The test was hanging for a long time waiting for RUN text. Checking for description first prevents that. Signed-off-by: Qais Yousef <qais.yousef@arm.com>
This commit is contained in:
		
				
					committed by
					
						 Marc Bonnici
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							69795628ed
						
					
				
				
					commit
					5a121983fc
				
			| @@ -126,14 +126,14 @@ public class UiAutomation extends BaseUiAutomation { | ||||
|             } | ||||
|         } | ||||
|         UiObject installed = | ||||
|             mDevice.findObject(new UiSelector().text("RUN") | ||||
|             mDevice.findObject(new UiSelector().description("RUN") | ||||
|                     .className("android.view.View")); | ||||
|             installed.waitForExists(360000); | ||||
|             if (!installed.exists()){ | ||||
|                 UiObject installeddesc = | ||||
|                     mDevice.findObject(new UiSelector().description("RUN") | ||||
|                 UiObject installedtext = | ||||
|                     mDevice.findObject(new UiSelector().text("RUN") | ||||
|                            .className("android.view.View")); | ||||
|                     installeddesc.waitForExists(1000); | ||||
|                     installedtext.waitForExists(1000); | ||||
|             } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user