How do I click the first item in a spinner using Robotium?

后端 未结 3 1735
误落风尘
误落风尘 2021-01-23 12:08

I am having problems scrolling up in a spinner to select the first item in a Robotium test case. Here is my code:

int pos = solo.getCurrentSpinners().get(0).getS         


        
3条回答
  •  無奈伤痛
    2021-01-23 12:36

    are you able just to get the view and call the perform click on it?

    solo.getCurrentSpinners().get(0).performClick()
    

提交回复
热议问题