sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12624
Re: [Question #206250]: Getting as ERROR saying - ".png looks like a file, but can't be found on the disk. Assume it's text."
Question #206250 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/206250
Status: Open => Answered
RaiMan proposed the following answer:
Supposing you are using import according to the recommendations in
http://sikuli.org/docx/globals.html#importing-other-sikuli-scripts-reuse-code-and-images
then you should have:
# a.sikuli
import b
#...
b.function
#b.sikuli
from sikuli import *
def function():
popup()
click("Downloaded.png")
If this is correct, then the image file Downloaded.png should either be
in the folder a.sikuli or b.sikuli.
The above message tells you, that Sikuli cannot find the image file
neither in a.sikuli nor in b.sikuli (so it takes it as a text to be
searched).
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.