← 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

Hari Kiran Vankayala requested more information:
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) # find all matches

while f.hasNext(): # loop as long there is a first and more matches
        print "found: ", f.next()


I have used this code to compare two screenshots, one screenshot I have saved on my desktop and other i tok from sikuli.

Though the screenshots are not matching..the script is passing.

Can you please help me in this regard.

Thanks,
Hari.

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