-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
locateCenterOnScreen doesn't raise ImageNotFoundException. #441
Comments
I'm experiencing the same problem.
|
I guess this is it. pyautogui/pyautogui/__init__.py Lines 263 to 277 in 57a98be
From the looks of it PyAutoGUI never explicitly calls it, so it is left to user code or PyScreeze. This should really be reflected in the documentation, but in the meantime calling that function near imports should do it. |
Thanks. This explains a lot. 😄 |
pyautogui.locateCenterOnScreen method doesn't raise ImageNotFoundException.
This method returns None.
I'm reading this.
https://pyautogui.readthedocs.io/en/latest/screenshot.html#the-locate-functions
Why this method returning None instead of raising ImageNotFoundException?
pyautogui.locateOnScreen also same returns None.
Version: PyAutoGUI==0.9.50
OS: Linux mint MATE 19.3
The text was updated successfully, but these errors were encountered: