1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

Youtube: Updating to reflect changes in accessing options menu

This commit is contained in:
scott 2018-06-11 14:29:19 +01:00 committed by setrofim
parent 488bd57659
commit ce6ea663a3
2 changed files with 8 additions and 1 deletions

View File

@ -122,7 +122,14 @@ public class UiAutomation extends BaseUiAutomation {
}
public void disableAutoplay() throws Exception {
clickUiObject(BY_DESC, "More options");
UiObject moreoptions =
mDevice.findObject(new UiSelector().descriptionContains("More options"));
if (moreoptions.exists()) {
moreoptions.click();
}
else {
clickUiObject(BY_DESC, "Account");
}
clickUiObject(BY_TEXT, "Settings", true);
clickUiObject(BY_TEXT, "General", true);