1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-22 04:49:00 +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 322f9be2d3
commit 1531ddcdef
2 changed files with 3 additions and 1 deletions

View File

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