[Export("setFormsPickerValue:")] // notice the colon at the end of the method name public NSString SetFormsPickerValue(NSString parameters) { var idAndValueAsString = (string)parameters; var myParams = idAndValueAsString.Split('|'); if (myParams.Length != 2) { throw new Exception($"SelectPickerValue: Could not parse '{parameters}' into an Id and Value"); } string returnValue = UITestBackdoorMethods.SetFormsPickerValue(myParams[0], myParams[1]); return(new NSString(returnValue)); }
public void SetFormsPickerValue(string automationId, string value) { UITestBackdoorMethods.SetFormsPickerValue(automationId, value); }