← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #268160]: Failed to find image pattern using Finder

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the images are NOT the same, because they come from 2 different
captures.

With this kind of test, you have to take care, that the second shot can
surely be found in the first shot.

so this should say "found":

f=Finder("testcase1-6.png")
img= "testcase1-6.png"
f.find(img)

if f.hasNext():
    print "found: ", f.next()
else:
    print "false not found"
f.destroy

BTW: f.destroy should be f.destroy(), but is not needed anyways anymore.

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