Closed GoogleCodeExporter closed 9 years ago
Removing the sleep will affect methods that scroll. E.g. clicking on a list
item, (expect the list to close) and then using solo.clickOnView(getView(int
id) will continue the scrolling of the list. With the sleep there the list will
have a chance to close before getView() will try to click on the underlying
view.
Obviously if users would use waitForDialogToClose or similar then this would
not happen. Unfortunately most users don't do that and removing sleeps like
this will cause flaky tests.
In your case you can use getActivity().findviewById(r.id.x) and that will be
instantaneously.
Original comment by renasr...@gmail.com
on 1 Apr 2014 at 5:17
Original issue reported on code.google.com by
shane...@gmail.com
on 1 Apr 2014 at 4:46