calabashnumberpickercalabash-android

How to enter value to android NumberPicker with calabash


I'm trying to make it working with next code:

enter_text("android.widget.EditText id:'numberpicker_input'", value)

But it doesn't work sometimes. The problem is that if number picker lose focus it is removing EditText.


Solution

  • Actually it was just my lack of ruby and calabash. I clone calabash android and start investigating and found next solution:

      query("android.widget.NumberPicker id:'minutes_picker'", setValue:minutes)
    

    minutes should be integer value