1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-21 01:59:13 +00:00

workloads/speedometer: Only close tabs on supported devices

Some devices don't have the option to close all tabs so don't error if
this element cannot be found.
This commit is contained in:
Marc Bonnici 2019-12-13 15:46:55 +00:00
parent a354338b52
commit 51f37a35f2
2 changed files with 3 additions and 1 deletions

View File

@ -110,6 +110,8 @@ public class UiAutomation extends BaseUiAutomation {
menu.click(); menu.click();
UiObject closetabs = UiObject closetabs =
mDevice.findObject(new UiSelector().textContains("Close all tabs")); mDevice.findObject(new UiSelector().textContains("Close all tabs"));
closetabs.click(); if (closetabs.exists()){
closetabs.click();
}
} }
} }