xiaofans / robotium

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

ability to wait for activity/view to fully load #457

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is that possible to have some kind of waiter for view to be fully loaded ? i.e.

solo.clickOnButton(buttonName);
solo.waitForLoad();
// do tests.

What we can see is that on some devices that buttons are not found but they 
clearly there which tends me to believe there can be some timing issue ?

Thanks.

Original issue reported on code.google.com by ram...@gmail.com on 16 May 2013 at 3:05

GoogleCodeExporter commented 9 years ago
Use the waitFor methods continuously in your test cases. You can use a waitFor 
method to wait for that specific button before continuing the test case. 

Original comment by renasr...@gmail.com on 16 May 2013 at 5:32

GoogleCodeExporter commented 9 years ago
Thanks for your reply, do you mean like waitForText ?

Original comment by ram...@gmail.com on 16 May 2013 at 6:40

GoogleCodeExporter commented 9 years ago
There are many different waitFor methods you can use for different
situations. See the javadoc for more information.

http://code.google.com/p/robotium/wiki/RobotiumAPIDocumentation

Original comment by renasr...@gmail.com on 16 May 2013 at 7:06