Is there any similar function/ command in MonkeyTalk, like WaitForPageToLoad which is in Selenium, that lets me specify the script to wait for a screen to render before moving ahead? I checked MonkeyTalk's language reference but could not find a way. Also searched for this issue on Google but it didn't help me much.

The iOS native app i'm testing takes some time to load and open up the home screen after login. After recording the event flow using MonkeyTalk, and running the test script, the script always fails because it does not wait for the home screen to render and moves ahead to identify the UI element being clicked by the user, which it does not find. Any suggestions will be helpful. Thanks!

1 Answer 1


MonkeyTalk waits and retries automatically for all commands. By default it retries for 2s, if you want to wait longer, just put a bigger number in the timeout column in the MonkeyTalk IDE. For example, 5000 would retry for 5s. See MonkeyTalk Spec: Command Timings for details.

  • Thankyou! It worked! I just had to use %thinktime and %retrydelay. %timeout was not needed. Jun 5, 2012 at 5:49
  • Also I want to know if I can override the Tap function through MonkeyTalk's JavaScript library? If that is so, then i can set the thinktime and retrydelay as a default value in the Tap function's parameters before executing the script. Jun 5, 2012 at 7:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.