← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #163911]: how to compare with two uncertain area

 

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

    Status: Open => Answered

Calle Rundgren proposed the following answer:
Are you looking for something like this:

image1 = "IMAGE1.png"

App.focus(r"firefox") #browser example
wait(3) #some time for firefox to start
if exists(image1):                   #check if the image is visible on the website
    print("Image found on website!")

I know this is not a optimized solution, but just to get a clear view of
what you are looking for.

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