mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	AdobeReader: Fails on S7 due to search icons being a different class. Removed the class specifier
This commit is contained in:
		
							
								
								
									
										0
									
								
								wlauto/workloads/adobereader/uiauto/build.xml
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										0
									
								
								wlauto/workloads/adobereader/uiauto/build.xml
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							| @@ -105,9 +105,11 @@ public class UiAutomation extends UxPerfUiAutomation { | ||||
|         } | ||||
|  | ||||
|         // Click the button to search from the present file list view | ||||
|         UiObject searchButton = getUiObjectByResourceId(packageID + "split_pane_search", | ||||
|                                                         "android.widget.TextView", | ||||
|                                                         TimeUnit.SECONDS.toMillis(10)); | ||||
|         UiObject searchButton = | ||||
|             new UiObject(new UiSelector().resourceId(packageID + "split_pane_search")); | ||||
|         if (!searchButton.waitForExists(TimeUnit.SECONDS.toMillis(10))) { | ||||
|             throw new UiObjectNotFoundException("Could not find search button"); | ||||
|         } | ||||
|         searchButton.click(); | ||||
|  | ||||
|         // Enter search text into the file searchBox.  This will automatically filter the list. | ||||
| @@ -193,8 +195,7 @@ public class UiAutomation extends UxPerfUiAutomation { | ||||
|         // and if not, tap again before continuing | ||||
|         tapDisplayCentre(); | ||||
|         UiObject searchIcon = | ||||
|             new UiObject(new UiSelector().resourceId(packageID + "document_view_search_icon") | ||||
|                                          .className("android.widget.TextView")); | ||||
|             new UiObject(new UiSelector().resourceId(packageID + "document_view_search_icon")); | ||||
|         if (!searchIcon.waitForExists(uiAutoTimeout)) { | ||||
|             tapDisplayCentre(); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user