You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem? My app opens a DatePicker dialog when click on a button.
I have to change date after getting hold of DatePicker instance. I can invoke solo.getCurrentDatePickers() to retrieve the DatePicker. But how can I modify the date?
Currently I am doing the following:-
solo.clickOnText("Schedule start time");
solo.clickOnView((Button) solo
.getView(com.ebay.mobile.R.id.button_date_schedule));
solo.waitForText("Set"); // This is to wait till the dataPicker dialog shows up
Log.d(CALL_NAME, Integer.toString(solo.getCurrentDatePickers().size())); // size is returned as 1
solo.getCurrentDatePickers().get(0).updateDate(2012, 1, 25);
solo.clickOnButton("Set"); What is the expected output? What do you see instead? Actual Result:- Throws error as "Only the original thread that created the view hierarchy can touch its views"
Expected Result:- The datePicker should pick the date as provided 2012-01-25 What version of the product are you using? On what operating system? Robotium2.5 Please provide any additional information below.
From koneru.s...@gmail.com on November 15, 2011 20:12:54
What steps will reproduce the problem? My app opens a DatePicker dialog when click on a button.
I have to change date after getting hold of DatePicker instance. I can invoke solo.getCurrentDatePickers() to retrieve the DatePicker. But how can I modify the date?
Currently I am doing the following:-
solo.clickOnText("Schedule start time");
solo.clickOnView((Button) solo
.getView(com.ebay.mobile.R.id.button_date_schedule));
solo.waitForText("Set"); // This is to wait till the dataPicker dialog shows up
Log.d(CALL_NAME, Integer.toString(solo.getCurrentDatePickers().size())); // size is returned as 1
solo.getCurrentDatePickers().get(0).updateDate(2012, 1, 25);
solo.clickOnButton("Set"); What is the expected output? What do you see instead? Actual Result:- Throws error as "Only the original thread that created the view hierarchy can touch its views"
Expected Result:- The datePicker should pick the date as provided 2012-01-25 What version of the product are you using? On what operating system? Robotium2.5 Please provide any additional information below.
Original issue: http://code.google.com/p/robotium/issues/detail?id=185
The text was updated successfully, but these errors were encountered: