因为下载的直接是最新版本的robotium4.1版,这次碰到gridView问题时,发现网上有getCurrentListViews() 、getCurrentImageViews()等方法。而自己却没有,纳闷了,下载查看了下3.6版本,果然有。
3.6版本中的方法:
ArrayList<android.widget.Button> |
getCurrentButtons() Returns an ArrayList of the Button objects currently shown in the focused Activity or Dialog. |
ArrayList<android.widget.CheckBox> |
getCurrentCheckBoxes() Returns an ArrayList of the CheckBox objects currently shown in the focused Activity or Dialog. |
ArrayList<android.widget.DatePicker> |
getCurrentDatePickers() Returns an ArrayList of the DatePicker objects currently shown in the focused Activity or Dialog. |
ArrayList<android.widget.EditText> |
getCurrentEditTexts() Returns an ArrayList of the EditText objects currently shown in the focused Activity or Dialog. |
|