Problem using Sikuli with robotMK #202
-
Hello, I am trying to automate an application launched from a browser in robotMK. The selenium stuff seems to be working but the image recognition piece with Sikuli is failing because it is only seeing black images when it takes a screenshot. When I run the test outside of the robotMK runner it works great. Has anyone seen this or have a workaround? Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi Jake, sounds to me like a problem with the desktop. Sikuli (as well as the ImagehorizonLibrary, which I prefer) need acess to the (physical) desktop. When Robotmk launches the test, I guess it runs with a different user than the one which is logged on the desktop. My recommendations:
|
Beta Was this translation helpful? Give feedback.
-
Thanks Simon, Running from task scheduler seems to do the trick. I will also check out imagehorizonlibrary. |
Beta Was this translation helpful? Give feedback.
Hi Jake, sounds to me like a problem with the desktop. Sikuli (as well as the ImagehorizonLibrary, which I prefer) need acess to the (physical) desktop. When Robotmk launches the test, I guess it runs with a different user than the one which is logged on the desktop.
When you are launching the test by hand, you are on the desktop - and this is why sikuli "sees" something.
My recommendations:
robotmk-runner.py
by Task Scheduler from the user which is logged on.