austgl / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Suggestion: Update Documentation of Solo.setDatePicker #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The method 

Solo.setDatePicker(int index, int year, int monthOfYear, int dayOfMonth) 

should have a hint in its documentation, that the value for monthOfYear goes 
from 0 to 11, not 1 to 12.

since the method

android.widget.DatePicker.updateDate(int year, int month, int dayOfMonth) 

is called eventually.

Original issue reported on code.google.com by JoaRe...@gmail.com on 20 Jun 2011 at 8:12

GoogleCodeExporter commented 9 years ago
Thanks for this. It will be updated in the next release.

Original comment by renasr...@gmail.com on 20 Jun 2011 at 11:37

GoogleCodeExporter commented 9 years ago
This has been corrected in Robotium 2.4.

Original comment by renasr...@gmail.com on 13 Jul 2011 at 5:26

GoogleCodeExporter commented 9 years ago
When I try to use solo.setDatePicker(...), I get an error that says: 
setDatePicker is undefined for solo. Any suggestions? Thanks.

Original comment by Charlott...@gmail.com on 26 Jul 2011 at 11:06

GoogleCodeExporter commented 9 years ago
Hello,

I think this bug may still be open – I just ran into this problem myself with 
Robotium 3.1.

It appears as though I need to subtract one from the month in order for 
setDatePicker() to work correctly, as 0 is January and 11 is December. I didn't 
see any mention of this in the documentation.

Thanks!

Original comment by guywithn...@gmail.com on 10 Mar 2012 at 9:56