← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #684105]: Finding Two different images

 

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

Description changed to:
looking to find 2 different images withing a given time for eg: 3 sec,
only if it finds BOTH of the images it should do something (popup, got
2), Not sure what I'm doing wrong, please advise:

def findTwoImages(self,"1569100025263.png,3","1569100032614.png,3"):
    twoImages = False
    imageCount = 0
    if exists(refSet.getImage("1569100025263.png")):
        imageCount += 1
    if exists(refSet.getImage("1569100032614.png")):
        imageCount += 1
        if (imageCount == 2):
            twoImages = True
            popup('got 2')

findTwoImages()

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.