Vicente
Vicente

Reputation: 232

Synchronization in Robotium

How long does robotium wait for a new activity to show up? Is it possible to set the timeout manually for the Solo instance?

Upvotes: 3

Views: 1814

Answers (2)

Henadzi Rabkin
Henadzi Rabkin

Reputation: 7062

If you not specify timeout manually, method solo.waitForActivity() will have default timeout 10 seconds. Because Robotium is open source project you can look it yourself by opening source code / class Waiter.

Upvotes: 0

Macarse
Macarse

Reputation: 93163

What do you want that timeout for?

If you want to wait for the new activity to show up, you can use:

getInstrumentation().waitForIdleSync();

But since you are using Robotium I guess they already do that for you.

Upvotes: 4

Related Questions