package com.amplify.honeydew_server.actions; import com.amplify.honeydew_server.*; import com.android.uiautomator.core.*; import java.util.Map; public class Click extends Action { public Click(UiDevice uiDevice) { super(uiDevice); } @Override public Result execute(Map arguments) throws UiObjectNotFoundException { final UiObject uiObject = getUiObject(arguments); if (isUiObjectAvailable(uiObject, arguments)) { uiObject.click(); return Result.OK; } return Result.FAILURE; } }