Sha256: 8d454e1d6ed772cf91fdd88e6183b62694599fbccc3373920bfe08ab424b609e
Contents?: true
Size: 848 Bytes
Versions: 3
Compression:
Stored size: 848 Bytes
Contents
package com.amplify.honeydew_server.actions; import android.widget.TextView; import com.android.uiautomator.core.*; import com.amplify.honeydew_server.Action; import com.amplify.honeydew_server.Result; 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
3 entries across 3 versions & 1 rubygems