← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #252744]: I have a problem while comparing the images in Sikuli

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
if not exists("path-to-my-expected-image.png", 0):
    print "screen display not as expected"
else:
    print "screen display is as expected"

if it makes sense: you might restrict the region where you expect the image to be and use
expected_region.exists()

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