mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
Youtube: Updating to reflect changes in accessing options menu
This commit is contained in:
parent
488bd57659
commit
ce6ea663a3
Binary file not shown.
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user