mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-10-30 06:34:13 +00:00
Geekbench: Adding support for Version 5 of Geekbench Corporate
This commit is contained in:
committed by
Marc Bonnici
parent
d3af4e7515
commit
1a15f5c761
@@ -139,11 +139,11 @@ public class UiAutomation extends BaseUiAutomation {
|
||||
uiDeviceSwipe(Direction.DOWN, 50);
|
||||
scrollPage();
|
||||
|
||||
String packageName = isCorporate ? "com.primatelabs.geekbench4.corporate"
|
||||
String packageName = isCorporate ? "com.primatelabs.geekbench.*.corporate"
|
||||
: "com.primatelabs.geekbench";
|
||||
|
||||
UiObject runButton =
|
||||
mDevice.findObject(new UiSelector().resourceId(packageName + ":id/runCpuBenchmarks")
|
||||
.className("android.widget.Button"));
|
||||
mDevice.findObject(new UiSelector().resourceIdMatches(packageName + ":id/runCpuBenchmarks"));
|
||||
if (!runButton.waitForExists(WAIT_TIMEOUT_5SEC)) {
|
||||
throw new UiObjectNotFoundException("Could not find Run button");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user