← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #178934]: Compare two images and get log info about comparison

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
openApp("absolute-path-to-firefox")
wait(5)
paste("google.com")
type(Key.ENTER)
wait(2)
if exists("image-of-google-page"):
    print "found"
else:
    print "not found"

If you want to have access to the information in the message area
afterwards, you have to run the script from command line and pipe stdout
and stderr to a file.

If you plan to do tests more systematic, the use of Pythons unittest is
recommended or even something like RobotFrameWork.

About the Sikuli features the docs at http://sikuli.org/docx/ should
help to slim down your confusion a little bit.

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