sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #44901
Re: [Question #661057]: Hi I am getting the below error when sikulix is used in eclipse
Question #661057 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661057
Status: Open => Answered
Manfred Hampl proposed the following answer:
You are confusing two different issues:
You have to make a screen shot of an area of the screen and store it
somewhere on your system in a file, usually in PNG format and with a
file name that can be something like "capture.png" or
"1477780579267.png" (this number is based on date and time of making the
screen shot).
1. In your first attempt the file name that you gave in your program was wrong, and sikuli could not access the file, because it was not available in the directory that sikuli uses for these files.
This gave the error message "Image: could not be loaded: file:/C:/Users/xw66/workspace/Sikul/Capture.PNG"
2. In a later attempt you apparently have corrected the file name of the
capture file (probably needs double backslashes). You can see this in
the error message, which does no more say "image could not be loaded".
This means that sikuli was able to access the screenshot file.
The reason why you now get a FindFailed exception is the following:
The screenshot file contains an image which is not visible on the screen.
Something like: You instruct sikuli to search for a big red rectangle on
the screen, but there is no such rectangle visible on the screen. Sikuli
tells you that it does not find such image by raising a FindFailed
exception.
There is no way that we can help you "how to find the image" if such
image is not visible on your screen.
Sikuli can only click on an area of the screen if it knows where to
click. If you instruct síkuli to click in the area where the image is,
but sikuli cannot identify such image on the screen, then sikuli will
always give this exception.
Maybe we can help further, if you tell us what exactly you want to
achieve with sikuli.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.