# \[Robot-Framework\]\[SikuliLibrary\] Timeout Not Finding img

**URL:** <https://forum.robotframework.org/t/robot-framework-sikulilibrary-timeout-not-finding-img/6539>\
**Category:** Libraries\
**Created:** [4 December 2023 17:19 UTC](https://forum.robotframework.org/t/robot-framework-sikulilibrary-timeout-not-finding-img/6539 "2023-12-04T17:19:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TextSolver34761](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@TextSolver34761](https://forum.robotframework.org/u/TextSolver34761)\
**Post date:** [4 December 2023 17:19 UTC](https://forum.robotframework.org/t/robot-framework-sikulilibrary-timeout-not-finding-img/6539/1 "2023-12-04T17:19:51Z")

</div>

Hi,

I’m wokring with:

Python (version : Python 3.10.4)  
RobotFramework (version: 6.1.1)  
robotframework-SikuliLibrary (version 2.0.3)  
OS: Windows

I’m trying to make the hello world example : [Sikuli Robot Framework Library | robotframework-SikuliLibrary](http://rainmanwy.github.io/robotframework-SikuliLibrary/).

I have an error :

com.github.rainmanwy.robotframework.sikulilib.exceptions.TimeoutException: Timeout happened, could not find P(1701437608400.png – not valid!) S: 0.7

I manage to understand that S is for “Similarty”. meaning that the program can find a 70% chance my image ?

Another issue I have is that I don’t understant why there is a need capture pics if I can get them. Currently all the script is picking up is the IDE with the script… not really interesting!

I have passed him my pic (in the folder the scripts creats and out)…

Nothing changes.

I have many “Sikuli\_java\_stdout\_1701446696.1746387.txt” file with the same message :

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.  
17:04:56.823 [main] INFO org.eclipse.jetty.util.log - Logging initialized @517ms to org.robotframework.remoteserver.logging.Jetty2Log4J  
17:04:56.895 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.31.v20200723; built: 2020-07-23T17:57:36.812Z; git: 450ba27947e13e66baa8cd1ce7e85a4461cacc1d; jvm 19.0.2+7-44  
17:04:56.947 [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@69c81773{/,null,AVAILABLE}  
17:04:57.090 [main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@770d3326{HTTP/1.1, (http/1.1)}{0.0.0.0:53531}  
17:04:57.090 [main] INFO org.eclipse.jetty.server.Server - Started @794ms

Same message as when I run the command :

“java -jar SikuliLibrary.jar 1000”

my code :

\*\*\* Settings \*\*\*  
Documentation Sikuli Library Demo  
Library SikuliLibrary  
Library BuiltIn

\*\*\* Test Cases \*\*\*  
Windows Notpad Hellow World  
Open Windows Start Menu  
Open Notepad  
Input In Notepad  
Quit Without Save

\*\*\* Keywords \*\*\*

Test  
Set Always Resize = 5

Open Windows Start Menu  
Click 1701437608400

Open Notepad  
Input Text search\_input.png notepad  
Click notepad.png  
Double Click notepad\_title.png

Input In Notepad  
Input Text notepad\_workspace.png Hello World  
Text Should Exist Hello World

Quit Without Save  
Click close.png  
Click dont\_save.png

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/9/9da408c4ca21b890166d6b33a642898974096a78.png)

Can I pass my program image and skip the capture?

How can I make the hello world work ?

Is there another documentation for installing the Lib

Thanks

TextSolver34761

---

<div class="post-metadata">

**Author:** ![TextSolver34761](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@TextSolver34761](https://forum.robotframework.org/u/TextSolver34761)\
**Post date:** [4 December 2023 17:24 UTC](https://forum.robotframework.org/t/robot-framework-sikulilibrary-timeout-not-finding-img/6539/2 "2023-12-04T17:24:42Z")

</div>

edit : here is the txt file I have :

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/4/40f7746bdef1274179798627d23345c224ae4f2b.png)

---

<div class="post-metadata">

**Author:** ![TextSolver34761](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@TextSolver34761](https://forum.robotframework.org/u/TextSolver34761)\
**Post date:** [4 December 2023 17:39 UTC](https://forum.robotframework.org/t/robot-framework-sikulilibrary-timeout-not-finding-img/6539/3 "2023-12-04T17:39:56Z")

</div>

I have asked @raiman here : [Question #708594 “[Robot-Framework]Timeout Not Finding img” : Questions : SikuliX](https://answers.launchpad.net/sikuli/+question/708594)🙂

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [5 December 2023 01:19 UTC](https://forum.robotframework.org/t/robot-framework-sikulilibrary-timeout-not-finding-img/6539/4 "2023-12-05T01:19:43Z")

</div>

Hi @TextSolver34761,

Try this:

```python
***Test Cases***
Windows Notpad Hellow World
    Add Image Path ${CURDIR}
    Open Windows Start Menu

```

FYI - [Add Image Path](http://rainmanwy.github.io/robotframework-SikuliLibrary/doc/SikuliLibrary.html#Add%20Image%20Path)

The error message seems to be saying that the file `1701437608400.png` is not valid, probably that it couldn’t find it?

Using `Add Image Path` should help with that, if it still doesn’t work it could also be that the file format of the image is invalid?

Hope that helps,

Dave.

---

<div class="post-metadata">

**Author:** ![TextSolver34761](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@TextSolver34761](https://forum.robotframework.org/u/TextSolver34761)\
**Post date:** [5 December 2023 17:25 UTC](https://forum.robotframework.org/t/robot-framework-sikulilibrary-timeout-not-finding-img/6539/5 "2023-12-05T17:25:43Z")

</div>

Hi @damies13 ,

Thanks, it worked!.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/c/c3f6742e19125fcf614eff4cdf5badc69cd6edd0.png)

As you can see, the image captured by the program is a full page screenshot (and not my windows button).

I don’t understand why.

Thanks,

TextSolver34761.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [5 December 2023 23:27 UTC](https://forum.robotframework.org/t/robot-framework-sikulilibrary-timeout-not-finding-img/6539/6 "2023-12-05T23:27:18Z")

</div>

Hi @TextSolver34761,

> [@TextSolver34761](#):
>
> I don’t understand why.

Sikuli only looks in the directories that it’s told to look in by that keyword, it doesn’t seem to be mentioned in the documentation but you’ll see all the examples on the [github page](https://github.com/rainmanwy/robotframework-SikuliLibrary) use this keyword before anything else.

Also as a tip, try to make the images you want to match as small as possible while still uniquely identifying the area.

for example this will give you a better match:  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/a/a1b382bcdb2804e1e40ce1fcb7d2bb29e3a9c1f5.png)

than this:  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/2/2a80e4cccbf0a639cb9a0574a0677ab09a1021dc.png)

Hope that helps,

Dave.
