← Back to team overview

sikuli-driver team mailing list archive

[Question #684105]: Finding Two different images

 

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

looking to find 2 different images, only if it finds the given 2 it should do something (popup, got 2), Not sure what I'm doing wrong, please advise:

def findTwoImages(self,"1569100025263.png","1569100032614.png"):
    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.