1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-28 05:28:42 +00:00

Merge pull request #363 from marcbonnici/facebook_fix

Facebook: Updated workload to work with server changes.
This commit is contained in:
setrofim 2017-03-06 08:13:10 +00:00 committed by GitHub
commit 2822949517
2 changed files with 4 additions and 16 deletions

View File

@ -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);