PyGetWindowException
-
파이썬 - Pyautogui activate() 안될때트러블슈팅 2023. 2. 1.
문제 분명 코드에 이상은 없는데 activate() 메소드가 처음만 작동을하고 이후에 exception이 잡힘 에러 내용 PyGetWindowException: Error code from Windows: 0 - 작업을 완료했습니다. 기존 코드 def active_edge(driver): edge_windows = pyautogui.getWindowsWithTitle("Edge")[0] try: if edge_windows.isActive == False: edge_windows.activate() edge_windows.restore() if edge_windows.isMaximized == False: edge_windows.maximize() except Exception as e: print(e)..