Sha256: 990acf09734236c74cd6a95816203d6c00f2402e57a16885477e92d2b5b24ccc

Contents?: true

Size: 758 Bytes

Versions: 3

Compression:

Stored size: 758 Bytes

Contents

package com.amplify.honeydew_server.actions;

import com.android.uiautomator.core.UiDevice;
import com.android.uiautomator.core.UiObject;
import com.android.uiautomator.core.UiObjectNotFoundException;
import com.amplify.honeydew_server.Action;
import com.amplify.honeydew_server.Result;

import java.util.Map;

public class LongClick extends Action {
    public LongClick(UiDevice uiDevice) {
        super(uiDevice);
    }

    @Override
    public Result execute(Map<String, Object> arguments) throws UiObjectNotFoundException {
        final UiObject uiObject = getUiObject(arguments);

        if(isUiObjectAvailable(uiObject, arguments)){
            uiObject.longClick();
            return Result.OK;
        }

        return Result.FAILURE;
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
honeydew-0.17.0 server/src/main/java/com/amplify/honeydew_server/actions/LongClick.java
honeydew-0.16.0 server/src/main/java/com/amplify/honeydew_server/actions/LongClick.java
honeydew-0.15.0 server/src/main/java/com/amplify/honeydew_server/actions/LongClick.java