Robotium:如何等待加载完成后再继续?
我想为 Android 应用程序编写 Robotium/Junit 测试。在某些步骤中,我希望我的测试等到旋转的加载符号从屏幕上消失。
我怎样才能做到这一点?
I want to write a Robotium/Junit test for an android app. At certain steps, I want my test to wait until the spinning loading symbol disappears off the screen.
How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过不同的方式来做到这一点。在 Robotium 中,您可以使用许多不同的 waitFor 方法。根据您的情况,您可以使用:
请参阅 Robotium API 文档了解更多 waitFor 方法在机器人中。
There are different ways in which you can do that. In Robotium there are a lot of different waitFor methods that you can use. In your case you can use:
Please see the Robotium API Documentation for more waitFor methods in Robotium.