sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22118
Re: [Question #238004]: Click() function fails to click on image name passed to it parameter of list element
Question #238004 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/238004
Status: Open => Answered
RaiMan proposed the following answer:
--- install Sikuli-IDE
see faq 2363
--- Is Sikuli truly capable of doing what I am trying to do?
Of course it is.
If you provide image filenames programmatically, you must make sure:
- that these filenames are valid Sikuli image filenames
- that these image files are found on the image path
In your case, you should set up a separate image directory and use
setBundlePath(), to point to that folder (this directory could even be
the first line in your file, so you could have different sets of
images).
In your script put a
print relayName
before the click to get the used filename printed before the error.
The above message is ok, if your intention is not to search for text instead of images.
In the Preferences you should switch off the text options, so the error message would be shorter.
In your version of Sikuli and earlier, Sikuli tried to find the given
string as text on the screen, if the given string did not make up a
valid filename or the file was not found on the image path.
this is a valid image filename on Windows:
a string containing: some-path-relative-or-absolute\some-name.png
if you only use some-name.png, the image will be searched in the script bundle and on the image path (if any is setup).
So again check your filenames.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.