← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #234886]: [error] Region.exists: seems that imagefile could not be found on disk

 

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

    Status: Needs information => Answered

RaiMan proposed the following answer:
--- if not exists(wait("1377850214554.png",5)):

This is not a "legal" usage:

--- exists(xxx)
... expects xxx to be some image file name

--- wait(xxx)
... returns a Match object at success, which will internally be changed to a string (what you get when you say print wait(xxx)), which definitely is not a valid image filename.

what you want to achieve, can simply be done this way:
if not exists("1377850214554.png",5):

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.