Sha256: e55824c42c347099322e815403e0c3eb407c9ab2cef29ab31d35cf8eb140d329

Contents?: true

Size: 800 Bytes

Versions: 17

Compression:

Stored size: 800 Bytes

Contents

package com.amplify.honeydew_server.actions;

import android.widget.TextView;
import com.amplify.honeydew_server.*;
import com.android.uiautomator.core.*;

import java.util.Map;

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

    @Override
    public Result execute(Map<String, Object> arguments) throws UiObjectNotFoundException {
        String menuName = (String) arguments.get("menuName");

        UiScrollable settingsMenu = new UiScrollable(new UiSelector().scrollable(true).focused(true));
        UiObject menuItem = settingsMenu.getChildByText(new UiSelector().className(TextView.class.getName()), menuName);
        return isUiObjectAvailable(menuItem, arguments) ? Result.OK : Result.FAILURE;
    }
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
honeydew-0.29.1 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.29.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.28.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.27.4 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.27.3 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.27.2 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.27.1 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.27.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.25.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.24.1 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.24.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.23.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.22.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.21.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.20.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.19.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java
honeydew-0.18.0 server/src/main/java/com/amplify/honeydew_server/actions/HasSettingsMenuItem.java