sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06251
Re: [Question #175412]: How to handle multiple instances of a particular image?
Question #175412 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/175412
Status: Open => Answered
RaiMan proposed the following answer:
not a feature.
you have to implement a solution yourself (similar to your other
question https://answers.launchpad.net/sikuli/+question/175411)
But I would not recommend to use folders (too complicated), use suffixes
instead.
e.g. having these images
buttonok1.png
buttonok2.png
buttonok3.png
def getAllImages(beginText):
# some dir/file name handling code (e.g. os.listdir() )
# that builds a list of all images beginning with beginText
return listFoundImages
and then use this function in other function calls like click
any(getAllImages("buttonok")).
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.