Xamarin.UITest: How to select a string in NumberPicker on Android

mjprmjpr Member ✭✭

Our app has NumberPickers in different places with all string values. I want to select the value using the string value rather than the integer value. Any help is greatly appreciated.

I have tried app.Query(x => x.Class("EditText").Invoke("setText", "cat")); it actually sets the text but when saving the value it reverts back to the original selection.

I don't want to use the following code as it sets the value using the integer value. app.Query(x=>x.Class("NumberPicker").Invoke("setValue", 2)) It would be nice if anybody could help me select the value in the NumberPicker using the string value.

Sign In or Register to comment.