Open dschiller opened 3 years ago
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