Skip to content
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

Errors while trying to read image png file - pending checks and more details #294

Closed
fshabashev opened this issue Aug 21, 2021 · 1 comment
Labels

Comments

@fshabashev
Copy link

fshabashev commented Aug 21, 2021

I'm trying automate clicking on particular visual element.
But getting a weird error:

> os.listdir(".")

['Untitled.ipynb',
 'rpa_python.log',
 'icon_to_click_on.png',
 '.ipynb_checkpoints']
> r.click('icon_to_click_on.png')

[RPA][ERROR] - cannot find icon_to_click_on.png
> rpa.__version__
'1.44.1'
> import platform
> platform.platform()

'Darwin-20.3.0-x86_64-i386-64bit'

@kensoh
Copy link
Member

kensoh commented Aug 22, 2021

Hi Fedor,

If your mac is using retina HD display, try running this once, before your do r.click(). To see if that helps. Mac Retina machines when you take screenshots, the images will be at 2X resolution of actual display.

This step below downsize your image to the real display resolution before finding a match.

r.vision('Settings.AlwaysResize = 0.5')

More details - #170 (comment)

Also, I assume you are using a single display, because visual automation only works on your primary display, I believe the one with the macOS docking bar. For automating secondary displays, need to send custom SikuliX code - #252 (comment)

@kensoh kensoh added the query label Aug 22, 2021
@kensoh kensoh changed the title Errors while trying to read image png file Errors while trying to read image png file - pending checks and more details Aug 22, 2021
@kensoh kensoh closed this as completed Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants