how to use wait for delay

Asked by milin agrawal

because of some network problem reduired page is takinf 5 sec to open so i want to add delay of 5 sec,means wait for 5 sec,how could i add this cammand

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

wait(5)

or use this, if you have an image you can wait for

wait(<some-image>, 10) # not found after 10 seconds ends script
exists(<some-image>, 10) # returns None in this case

already had a look at the docs? http://sikuli.org/docx/

Revision history for this message
milin agrawal (milin) said :
#2

Thanks RaiMan, that solved my question.