beuaaa / pywinauto_recorder

A record-replay tool to automate GUI via pywinauto
https://pywinauto-recorder.readthedocs.io/
MIT License
127 stars 24 forks source link

Recorder stops recording and app becomes unresponsive #68

Open invertednz opened 4 months ago

invertednz commented 4 months ago

I am trying to record on windows store app 'Warehouse Management' by Microsoft, which can be found in the Microsoft store by searching for 'D365 warehouse management'.

Once installed I open the warehouse management app and go to demo mode. After clicking around for approx one min the recorder will stop and the app will become unresponsive.

I see the following in the terminal.

['Traceback (most recent call last):\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\recorder.py", line 896, in run\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\recorder.py", line 671, in find_unique_element_array_2d\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\core.py", line 281, in get_sorted_region\n', 'IndexError: list index out of range\n'] ['Traceback (most recent call last):\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\recorder.py", line 896, in run\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\recorder.py", line 671, in __find_unique_element_array_2d\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\core.py", line 281, in get_sorted_region\n', 'IndexError: list index out of range\n'] ['Traceback (most recent call last):\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\recorder.py", line 896, in run\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\recorder.py", line 671, in find_unique_element_array_2d\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\core.py", line 281, in get_sorted_region\n', 'IndexError: list index out of range\n'] ['Traceback (most recent call last):\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\recorder.py", line 863, in run\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto\base_wrapper.py", line 367, in rectangle\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto\uia_element_info.py", line 326, in rectangle\n', "_ctypes.COMError: (-2147220991, 'An event was unable to invoke any of the subscribers', (None, None, None, 0, None))\n"]

Later the following starts to occur: ['Traceback (most recent call last):\n', ' File "C:\Users\THETES~1\AppData\Local\Programs\PYWINA~1\pywinauto_recorder\recorder.py", line 825, in run\n', "pywintypes.error: (5, 'GetCursorPos', 'Access is denied.')\n"]

github-actions[bot] commented 4 months ago

Thank you very much for sharing this first issue.