mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-30 22:54:18 +00:00 
			
		
		
		
	Facebook: Updated workload to work with server changes.
Fixed being unable to find the 'update status' box. Now selects a 'do you know' notification rather than the latest, as this is now a link on how to upgrade the app which opens in external browser.
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -117,11 +117,9 @@ public class UiAutomation extends BaseUiAutomation { | ||||
|              .className("android.widget.ImageButton").index(0))))); | ||||
|         clickNotificationsLogo.clickAndWaitForNewWindow(timeout); | ||||
|  | ||||
|         //Click on latest notification | ||||
|         //Click on a 'do you know' notification. | ||||
|         UiObject clickNotify = new UiObject(new UiSelector() | ||||
|              .className("android.support.v4.view.ViewPager").index(0) | ||||
|              .childSelector(new UiSelector() | ||||
|              .className("android.widget.LinearLayout").index(1))); | ||||
|              .textContains("do you know")); | ||||
|         clickNotify.clickAndWaitForNewWindow(timeout); | ||||
|  | ||||
|         sleep(timeout); | ||||
| @@ -189,18 +187,8 @@ public class UiAutomation extends BaseUiAutomation { | ||||
|         sleep(timeout); | ||||
|  | ||||
|         //Update the status | ||||
|         UiObject updateStatus = new UiObject(new UiSelector() | ||||
|              .className("android.widget.FrameLayout").index(1) | ||||
|              .childSelector(new UiSelector() | ||||
|              .className("android.widget.FrameLayout").index(1) | ||||
|              .childSelector(new UiSelector() | ||||
|              .className("android.widget.RelativeLayout").index(0) | ||||
|              .childSelector(new UiSelector() | ||||
|              .className("android.widget.LinearLayout").index(0) | ||||
|              .childSelector(new UiSelector() | ||||
|              .className("android.widget.LinearLayout").index(0) | ||||
|              .childSelector(new UiSelector() | ||||
|              .className("android.widget.LinearLayout").index(0))))))); | ||||
|         UiObject updateStatus = new UiObject(new UiSelector().resourceId( | ||||
|                                              "com.facebook.katana:id/publisher_status")); | ||||
|  | ||||
|         updateStatus.clickAndWaitForNewWindow(timeout); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user