package com.amplify.honeydew_server.actions; import com.android.uiautomator.core.UiDevice; import com.android.uiautomator.core.UiObjectNotFoundException; import com.amplify.honeydew_server.Action; import com.amplify.honeydew_server.Result; import java.util.Map; public class IsTextPresent extends Action { public IsTextPresent(UiDevice uiDevice) { super(uiDevice); } @Override public Result execute(Map arguments) throws UiObjectNotFoundException { return getUiObject(arguments).exists() ? Result.OK : Result.FAILURE; } }