← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #662108]: skips while not exists part and goes on with the find part before the previous png even shows up

 

Question #662108 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/662108

    Status: Open => Answered

RaiMan proposed the following answer:
thats logic ;-)

this is the relevant part

35        while not exists("1513694540986.png"):
36            sleep(5)
37            find("1513694540986.png")

in 35 you look for 3 seconds for 1513694540986 image.
If it still does not exist, it continues with line 36 and 37 and crashes with FindFailed in 37

in 35 it does not exist and after 3 + 5 seconds it still does not exist.

... as mentioned: logical ;-)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.