mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-30 22:54:18 +00:00 
			
		
		
		
	Fix for Skype on particular devices and updated jar files
Some devices issue a pop up to confirm local file access which needs to be handled.
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -49,6 +49,7 @@ public class UiAutomation extends UxPerfUiAutomation { | ||||
|  | ||||
|         // Run tests | ||||
|         handleLoginScreen(loginName, loginPass); | ||||
|         confirmLocalFileAccess(); | ||||
|         selectContact(contactName, contactSkypeId); | ||||
|         if ("video".equalsIgnoreCase(callType)) { | ||||
|             videoCallTest(callDuration); | ||||
| @@ -76,6 +77,15 @@ public class UiAutomation extends UxPerfUiAutomation { | ||||
|         signinButton.clickAndWaitForNewWindow(); | ||||
|     } | ||||
|  | ||||
|     private void confirmLocalFileAccess() throws Exception { | ||||
|         // First time run requires confirmation to allow access to local files | ||||
|         UiObject allowButton = new UiObject(new UiSelector().textContains("Allow") | ||||
|                                                             .className("android.widget.Button")); | ||||
|         if (allowButton.waitForExists(timeout)) { | ||||
|             allowButton.clickAndWaitForNewWindow(timeout); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     private void selectContact(String name, String id) throws Exception { | ||||
|         Timer timer = new Timer(); | ||||
|         timer.start(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user