You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImageNotFoundException: Reference image "myimage.png" was not found on screen
If I use an Image inside VSCode, where I also execute the Robot Tests then ImageHorizonLibrary find the Image. If I use any Image which is not part of VSCode ( eg. Finder, any Apps, etc. ) then ImageHorizonLibrary will NOT find the Image provided and result in ImageNotFoundException even if the App which I used to take a Screenshot from has the Focus.
I also saw that there will be created a Screenshot TestLogicAUQT-screenshot-1.png. How is that working ?
This Image shows an empty Desktop with Logic Pro active not showing any Dialogs.
If I change to Finder while Test is running I get the same empty Screenshot showing the Desktop only Finder is focused then. It seems the ImageHorizonLibrary is not able to see Dialogs / Windows of an App.
Is there a way to also use Images outside of VSCode ?
Cheers
Dirk
Code Example
TestLogicAUQT.robot
*** Settings ***
Library Libraries/LibDaw.py
Library ImageHorizonLibrary reference_folder=${CURDIR}${/}Data${/}UIAutomationImages
*** Test Cases ***
Test Logic Pro AU QT
Open DAW Logic Pro X
Locate LPX_EmptyProject # <-- Doesn't work; Screenshot from Logic
Wait for Tutorials # <-- Doesn't work; Screenshot from Logic
Wait for Facts # <-- Works as it is a Screenshot from VScode
Wait for Facts2 # <-- Doesn't work; Screenshot from Finder
Versions
MacOS Catalina 10.15.7 (19H524) on Intel
Python 3.8.7
Tryed to use robotframework-SikuliLibrary instead but same Issue there.
To fix the Issue in Sikuli I need to change the Screenshot Image Size to 50 Percent.
I found out that the Screenshot Tool on Mac saves the images in it's double size. To fix that open the Screenshot taken with the Mac internal Tools in Preview and change it's size ( Tools / Adjust Size ) to 50 Percent and save. This way SikuliLibrary is able to find the Screenshots on the screen.
Unfortunetly this does NOT fix the ImageHorizonLibrary Issues.
Following Keywords fail:
Error is:
If I use an Image inside VSCode, where I also execute the Robot Tests then ImageHorizonLibrary find the Image. If I use any Image which is not part of VSCode ( eg. Finder, any Apps, etc. ) then ImageHorizonLibrary will NOT find the Image provided and result in
ImageNotFoundException
even if the App which I used to take a Screenshot from has the Focus.I also saw that there will be created a Screenshot
TestLogicAUQT-screenshot-1.png
. How is that working ?This Image shows an empty Desktop with Logic Pro active not showing any Dialogs.
If I change to Finder while Test is running I get the same empty Screenshot showing the Desktop only Finder is focused then. It seems the ImageHorizonLibrary is not able to see Dialogs / Windows of an App.
Is there a way to also use Images outside of VSCode ?
Cheers
Dirk
Code Example
TestLogicAUQT.robot
Versions
The text was updated successfully, but these errors were encountered: