I am writing a bot to interact with the browser (do not persuade me to rewrite for Selenium or Keyboard and others) and it gave me an error. There are no files with the name pyautogui nearby and I tried name it main and python v3.8, 3.9. Received this error in every case. MacOS
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/rubicon/objc/ctypes_patch.py:21: UserWarning: rubicon.objc.ctypes_patch has only been tested with Python 3.4 through 3.8. You are using Python 3.9.4. Most likely things will work properly, but you may experience crashes if Python's internals have changed significantly.
warnings.warn(
Traceback (most recent call last):
File "/Users/alina/PycharmProjects/ABOBA/main_miner_alienworlds.py", line 183, in <module>
for i in pyautogui.getWindowsWithTitle('##### #######'):
AttributeError: module 'pyautogui' has no attribute 'getWindowsWithTitle'
import pyautogui
…
for j in pyautogui.getWindowsWithTitle('##### #######'):
do something
pyautogui was installed with pip3
You use the wrong module!
https://pypi.org/project/PyGetWindow/ is the module containing getWindowsWithTitle