raise LookupError('Find Control Timeout({}s): {}'.format(maxSearchSeconds, self.GetSearchPropertiesStr()))
Aatroxion opened this issue · comments
Same issue
same issue.
2023-09-28 19:34:29.773 WeChatType.py[217] SendMsg -> Find Control Timeout(10.0s): {SubName: 'TestGroup', ControlType: EditControl}
Traceback (most recent call last):
File "\micromsgServer2.py", line 65, in
wx.SendMsg('bot:test',who)
File "C:\Users*\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PyOfficeRobot\core\WeChatType.py", line 217, in SendMsg
self.EditMsg.SendKeys('{Ctrl}a', waitTime=0)
File "C:\Users*\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uiautomation\uiautomation.py", line 6743, in SendKeys
self.SetFocus()
File "C:\Users*\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uiautomation\uiautomation.py", line 6213, in SetFocus
return self.Element.SetFocus() == S_OK
^^^^^^^^^^^^
File "C:\Users*\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uiautomation\uiautomation.py", line 6224, in Element
self.Refind(maxSearchSeconds=TIME_OUT_SECOND, searchIntervalSeconds=self.searchInterval)
File "C:\Users***\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\uiautomation\uiautomation.py", line 6475, in Refind
raise LookupError('Find Control Timeout({}s): {}'.format(maxSearchSeconds, self.GetSearchPropertiesStr()))
LookupError: Find Control Timeout(10.0s): {SubName: 'TestGroup', ControlType: EditControl}
我的错,who里面的值写错了一个大小写