robotframework-SikuliLibrary icon indicating copy to clipboard operation
robotframework-SikuliLibrary copied to clipboard

if image is not found, match score is 0, but keyword should say that image is not found

Open andreabisello opened this issue 8 years ago • 2 comments

due i'm moving from window to linux the same tests , i make a mistake with the use of the \ or // so, in windows, this path works

${IMAGE_DIR} ${CURDIR}\img

but in linux, it should to be

${IMAGE_DIR} ${CURDIR}//img

so, when i try

Screen Should Contain image.png

the keyword fails, but the reason is that image.png is not found in ${CURDIR}\img path , and no that screen doesn't contains image.png

i think the keyword should return a special message if the image is not found.

tips : to make the path operative system indipendent, we can use /

@rainmanwy what do you think? i'm your worst nightmare? :)

andreabisello avatar Dec 07 '16 09:12 andreabisello

You are welcome:). Yes, you could use "/", or variable ${/} http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#operating-system-variables

Yes, in the library, i did not check whether image is existed. Image file finder is implemented by sikuli. I am not sure whether there is api that could be used. http://nightly.sikuli.de/docs/index.html

But sorry, i haven't enough time to develop this library recently. If you could find the api, or you have solution, could raise PR to me.

rainmanwy avatar Dec 08 '16 03:12 rainmanwy

Is there solution for this issue, image not found? My sample code the Exists keyword passed but when I Click the image, it can't find the image.

choosebest avatar Jan 30 '18 23:01 choosebest