-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find image on screen - image snapshot provided doesn't match screen #896
Comments
Hi Tim, thanks for your appreciation. From your screenshot, it looks like the outlook icon looks different from what is in the dock. The dock has some red numbers showing number of emails but not your image snapshot. In order to find a match, the given image must match the target UI element closely. Can you try doing Let me know how that goes! |
In addition, when I opened Sikuli, took screenshots and run, clicking on images worked. |
I'm guessing could it be due to MacBook Pro Retina display? I have encountered users having problems when using the screenshot capture. If it is retina display, the image captured will be at much higher resolution than it actually is and won't match. Can you see if the solutions / workarounds at below issue works for you? |
@kensoh thank you very much. After changing the PPI from 144 to 72, it worked for me now. |
Thanks @tlm2c09! In future when I learn of better solution I'll implement it into the tool. Have fun! |
for me the solution to reduce the PPI to 72 did not work |
Hi Marcelo, I think somehow I missed your message. Can you tell me more if this is working now? |
hi Ken, sorry for the delay |
Hi Marcelo, I see.. ok got it! For background, some image editing tool can let you select and remove background to become transparent. That way it can make an icon work better when the background colour changes. |
Hi Ken,
Firstly, I want to thank you for developing this useful tool. It is simple and easy to begin with.
I am working with TagUI integrating with Sikuli on my Mac 2014 to click on some images. I tried to click on the outlook icon in the dock but it showed the message 'ERROR - cannot find /Users/tuongle/PycharmProjects/tag_ui_python/src/test/lib/outlook.png on screen'
I already put the .tag file and the .png files into the same folder but still no luck.
Also I tried with the absolute path to the image but the same error displays.
Could you please help me on this?
Thank you
The text was updated successfully, but these errors were encountered: