[Export("setFormsPickerIndex:")] // notice the colon at the end of the method name
        public NSString SetFormsPickerIndex(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 Index");
            }

            int    index       = int.Parse(myParams[1]);
            string returnValue = UITestBackdoorMethods.SetFormsPickerIndex(myParams[0], index);

            return(new NSString(returnValue));
        }
Beispiel #2
0
 public void SetFormsPickerIndex(string automationId, int value)
 {
     UITestBackdoorMethods.SetFormsPickerIndex(automationId, value);
 }