← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #252394]: Not able to validate if image is exists on screen or not

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--1: 
screen.wait(path_or+"image5",10000);

- not a valid image filename: path_or+"image5.png" (why are you not using your already defined Pattern ?
- 10000 means 10000 seconds - I guess you do not mean that

So it might not get beyond that, if you have a standard timeout for your
test case.

--2: 
To use Debug.user() Settings.DebugLogs = true; is not needed.
Since the first Debug.user() comes after the above wait() the file might well be empty.I would put a Debug.user() at least at the beginning of your test case.

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