1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-06-14 12:26:48 +01: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
wa/workloads/speedometer
com.arm.wa.uiauto.speedometer.apk
uiauto
app
src
main
java
com
arm
wa
uiauto

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