mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00:00
workloads/speedometer: Misc Fixes
- Fix formatting - Skip teardown automation if elements are not present on some devices instead of failing the workload. - Give extra time for start button to appear as some devices can be slow to load.
This commit is contained in:
parent
ba4004db5f
commit
755417f139
Binary file not shown.
@ -79,7 +79,7 @@ public class UiAutomation extends BaseUiAutomation {
|
||||
UiObject start =
|
||||
mDevice.findObject(new UiSelector().description("Start Test")
|
||||
.className("android.widget.Button"));
|
||||
if (start.exists()){
|
||||
if (start.waitForExists(2000)){
|
||||
start.click();
|
||||
} else {
|
||||
UiObject starttext =
|
||||
@ -100,6 +100,9 @@ public class UiAutomation extends BaseUiAutomation {
|
||||
UiObject tabselector =
|
||||
mDevice.findObject(new UiSelector().resourceId("com.android.chrome:id/tab_switcher_button")
|
||||
.className("android.widget.ImageButton"));
|
||||
if (!tabselector.exists()){
|
||||
return;
|
||||
}
|
||||
tabselector.click();
|
||||
UiObject menu =
|
||||
mDevice.findObject(new UiSelector().resourceId("com.android.chrome:id/menu_button")
|
||||
@ -110,4 +113,3 @@ public class UiAutomation extends BaseUiAutomation {
|
||||
closetabs.click();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user