Does wait(screenshot), 300) only check once? or 300 times?

Asked by arminius

As in does it check the screen once then wait 300 seconds to move on?
or does it keep checking? hoping for a change?
I'm hoping for the latter.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
arminius
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Read the manual
http://sikulix-2014.readthedocs.io/en/latest/region.html?highlight=timeout#Region.wait

... If PS is specified, it ==> keeps searching the given pattern in the region <== until the image appears ... or the specified amount of time has elapsed. ...

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

(Remark: I do not know about the frequency of re-searching, I assume RaiMan can answer that.)

Revision history for this message
arminius (arminius75) said :
#3

Well I'm glad that my doubling of the wait time every time it fails isn't a waste of time.
Thanks.