/// <summary> /// Perform the touch action /// </summary> /// <param name="touchAction">touch action to perform</param> public void PerformTouchAction(ITouchAction touchAction) { if (touchAction != null) { var parameters = new Dictionary <string, object>(); parameters.Add("actions", touchAction.GetParameters()); Execute(AppiumDriverCommand.PerformTouchAction, parameters); } }
public void PerformTouchAction(ITouchAction touchAction) { if (touchAction == null) { return; } var parameters = AppiumCommandExecutionHelper.PrepareArgument("actions", touchAction.GetParameters()); Execute(AppiumDriverCommand.PerformTouchAction, parameters); }
/// <summary> /// Perform the touch action /// </summary> /// <param name="touchAction">touch action to perform</param> public void PerformTouchAction(ITouchAction touchAction) { if (null == touchAction) { return; // do nothing } var parameters = new Dictionary <string, object>(); parameters.Add("actions", touchAction.GetParameters()); this.Execute(AppiumDriverCommand.PerformTouchAction, parameters); }