Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用robotsium做一个测试项目。我需要暂停所有剩余代码的执行,直到进度对话框关闭。现在我正在硬编码时间。但问题是有时进度对话框不会在该时间段内关闭。我怎样才能做到这一点?
您可以使用该waitForDialogToClose(long timeout)方法。
waitForDialogToClose(long timeout)
希望这可以帮助。