1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

PCMark: Fixing click co-ordinates

The workload is clicking the run button in the centre
of the element but this is no longer starting the
run operation.

Refactoring the code to click in the topleft of the
object seems to rectify the issue.
This commit is contained in:
Scott Jackson 2019-09-23 10:18:13 +00:00 committed by Marc Bonnici
parent a9f3ee9752
commit 0166180f30
2 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class UiAutomation extends BaseUiAutomation {
.childSelector(new UiSelector().text("RUN")
.className("android.view.View")));
if (run.exists()) {
run.click();
run.clickTopLeft();
} else {
UiObject runtext =
mDevice.findObject(new UiSelector().text("RUN"));