← Back to team overview

sikuli-driver team mailing list archive

[Question #212205]: Finder class

 

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

Hi.

I have an array of images (communications) and in every images in the array I'm trying to find inside of that image another subimage ("E.png"). In some index positions there are images with the subimage "E.png" inside, but it returns everytime false. 

 What I'm doing wrong?


My code is:

    communications = [("InterfaceAPI.png"),("Bridges8GPS.png"),
             ("InterfaceATC.png"),("ATCConfigura.png"),("ATCMessages.png"),
             ("InterfaceBHS.png"),("BHSSiemensMe.png"),("DownloadChut.png"),("Infrastructu.png"),("1350580843499.png"),("1350580851811.png"),("1350580861654.png"),
             ("InterfaceBIL.png"),("BillingMessa.png"),("BillingMessa-1.png"),
             ("1350570433841.png"),
             ("InterfacesPi.png"),
             ("1350570945044.png"),
             ("Ping8Bring.png")]
    for i in range(len(communications)):
        sleep(1) 
        try:
            f = Finder(communications[i])
            if f.find("E.png"):    
                 hover(communications[i])
            else:
                sleep(0.5)
                if exists(communications[i]):
                    keyDown(Key.CTRL)
                    click(communications[i])
                    keyUp()
            f.destroy()
        except:
            exit()

Thanks in advance,

Tiago Reis
 

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