Adjusting timing of actions

Asked by Boris Lovenfosse

Hi All,

I have a lot of errors due to timeout as I understand it.
The pages do not load fast enough and the script crashes.
How could I manage the 'wait time' apart from 'wait' and 'waitVanish', which haven't worked for me..

Thank you a lot for any answer or redirection to a similar tread.

Boris

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Boris Lovenfosse
Solved:
Last query:
Last reply:
Revision history for this message
Boris Lovenfosse (b-lovenfosse) said :
#1

I have found a solution with wait(include time you want script to wait)

Revision history for this message
RaiMan (raimund-hocke) said :
#2

wait(image, a-long-time)
exists(image, a-long-time)
waitVanish(image, a-long-time)

usually are the better solution than a fixed wait(some-time), since they come back, when successful, but wait(10) always waits 10 seconds, no matter if the GUI is ready or not.