0

I am trying out Xamarin.UITest on iOS, and I am running into the problem that I cannot scroll in my custom UIPickerView keyboard.

So my question is: if I have a UIPickerView as a keyboard, how can I select a value?

vrwim
  • 13,020
  • 13
  • 63
  • 118

1 Answers1

0

You can simply perform .Invoke("selectRow", 3 , "inComponent", 3, "animated", true) on your UIPickerView to execute the method picker.SelectRow(3, 3, true).

Full statement:

app.Query(e => e.Id("MyUIPickerId").Invoke("selectRow", 3 , "inComponent", 3, "animated", true));
vrwim
  • 13,020
  • 13
  • 63
  • 118