← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #167056]: Any way to use Sikuli Java API to compare two screenshot file captured by other tools like webdriver?

 

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

RaiMan proposed the following answer:
@Hari

??? What is printed with the statement:
print "found: ", f.next()

Might be a problem of similarity.

Try: f.find(img, 0.99) # find all matches

So I would do it this way (since it is a 2 image compare):

f = Finder("/Users/hari/Desktop/Screen shot 2011-09-02 at 11.18.42 AM.png")
img= <took image screenshot from sikuli># the image you are searching - Actual

f.find(img, 0.99)

if f.hasNext(): 
        print "matching: ", f.next()
else:
        print "not matching"

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