pywinauto: Application hangs at FindAll in uia_element_info.py
Expected Behavior
I have an application that is automating activities in Firefox. It connects to a running Firefox process.
Actual Behavior
Basically from one day to the next my application stopped working, meaning it hangs as soon as I want to connect to the running Firefox process. After further testing, it hangs on any connect.
Debugging the problem leads me to this line with FindAll. Apparently, there was such an issue already that was related to multi-threading (#394), but it was fixed in a previous version. However, I am not using multi-threading at the moment.
What suprises me, is, that this stopped working from one day to the other. Just yesterday it was running properly. I cannot really say what has changed.
Short Example of Code to Demonstrate the Problem
from pywinauto.application import Application
app_obj = Application(backend='uia').connect(title_re=".*Mozilla Firefox")
Specifications
- Pywinauto version: 0.6.8
- Python version and bitness: 3.11.6 x64
- Platform and OS: Win 11
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 21 (9 by maintainers)
Yes, I suppose there is not much one can do on Python side, as it seems to be on the UIA-side. I will try it on another day. Maybe it goes away magically again, in the same way it came 😉. I will give an update on it.
Thanks very much for your support so far. I really like the project.
Ok, so I tried it today and it really works like a charm now. I dont know what was causing it. I would close the ticket then, hoping this was just a one-time glitch.