public class IOSMobileCommandHelper extends MobileCommand
CLOSE_APP, commandRepository, COMPLEX_FIND, CURRENT_ACTIVITY, END_TEST_COVERAGE, GET_DEVICE_TIME, GET_NETWORK_CONNECTION, GET_SESSION, GET_SETTINGS, GET_STRINGS, HIDE_KEYBOARD, INSTALL_APP, IS_APP_INSTALLED, IS_LOCKED, LAUNCH_APP, LOCK, LONG_PRESS_KEY_CODE, OPEN_NOTIFICATIONS, PERFORM_MULTI_TOUCH, PERFORM_TOUCH_ACTION, PRESS_KEY_CODE, PULL_FILE, PULL_FOLDER, PUSH_FILE, REMOVE_APP, REPLACE_VALUE, RESET, RUN_APP_IN_BACKGROUND, SET_NETWORK_CONNECTION, SET_SETTINGS, SET_VALUE, SHAKE, START_ACTIVITY, TOGGLE_LOCATION_SERVICES, UNLOCK
Constructor and Description |
---|
IOSMobileCommandHelper() |
Modifier and Type | Method and Description |
---|---|
static Map.Entry<String,Map<String,?>> |
hideKeyboardCommand(String keyName)
This method forms a
Map of parameters for the
keyboard hiding. |
static Map.Entry<String,Map<String,?>> |
hideKeyboardCommand(String strategy,
String keyName)
This method forms a
Map of parameters for the
keyboard hiding. |
static Map.Entry<String,Map<String,?>> |
lockDeviceCommand(int seconds)
This method forms a
Map of parameters for the
device locking. |
static Map.Entry<String,Map<String,?>> |
shakeCommand()
This method forms a
Map of parameters for the
device shaking. |
deleteC, getC, postC, prepareArguments, prepareArguments
public static Map.Entry<String,Map<String,?>> hideKeyboardCommand(String keyName)
Map
of parameters for the
keyboard hiding.keyName
- The button pressed by the mobile driver to attempt hiding the
keyboard.Map
command arguments.public static Map.Entry<String,Map<String,?>> hideKeyboardCommand(String strategy, String keyName)
Map
of parameters for the
keyboard hiding.strategy
- HideKeyboardStrategy.keyName
- a String, representing the text displayed on the button of the
keyboard you want to press. For example: "Done".Map
command arguments.public static Map.Entry<String,Map<String,?>> lockDeviceCommand(int seconds)
Map
of parameters for the
device locking.seconds
- seconds number of seconds to lock the screen forMap
command arguments.Copyright © 2016. All rights reserved.