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:
parent
a354338b52
commit
51f37a35f2
Binary file not shown.
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user