← Back to team overview

sikuli-driver team mailing list archive

[Question #272260]: name of image passed to function

 

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

Hello, 

how to get the name of an image passed to a function as an object ?

def WaitAndClick(image,time,doclick = 1):
    try:    
        wait(image,time)
        if doclick==1:
            click(image)
            sleep(5)
    except:
        exit("no image found")

in the excpet i would like to pu the image name or entire object even ? 

image.name is not working, nor any other attribute. 

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