mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	Add clickUiObject to BaseUiAutomation
Convenience method to click on o UiObject and throw an exception if the view does not change within a specified timeout.
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -142,6 +142,12 @@ public class BaseUiAutomation extends UiAutomatorTestCase { | ||||
|         return object; | ||||
|     } | ||||
|  | ||||
|     public void clickUiObject(UiObject uiobject, long timeout) throws Exception { | ||||
|         if (!uiobject.clickAndWaitForNewWindow(timeout)) { | ||||
|             throw new UiObjectNotFoundException(String.format("Timeout waiting for New Window")); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public int getDisplayHeight () { | ||||
|         return getUiDevice().getInstance().getDisplayHeight(); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user