New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library Errors out before timeout to find a control not yet present with KeyError: 0 #31
Comments
The control has not yet been generated. The library should wait until timeout expires to search for control right? |
Please update the code and try again. |
Ok I will try it tomorrow and let you know. Thanks. |
@yinkaisheng What do you mean by update the code? |
Do you have a release? |
@yinkaisheng build the code, the fix seems to work. |
Will you do a pip release for this? |
Just the git code. |
Traceback (most recent call last):
File "init.py", line 120, in wait_for_control
if control.Exists(search_wait_time, uiautomation.SEARCH_INTERVAL):
File "C:\Python27\Lib\site-packages\uiautomation\uiautomation.py", line 2424, in Exists
control = FindControl(self.searchFromControl, self._CompareFunction, self.searchDepth, False, self.foundIndex)
File "C:\Python27\Lib\site-packages\uiautomation\uiautomation.py", line 4299, in FindControl
for child, depth in WalkControl(control, findFromSelf, maxDepth):
File "C:\Python27\Lib\site-packages\uiautomation\uiautomation.py", line 4185, in WalkControl
child = lastControl.GetFirstChildControl()
File "C:\Python27\Lib\site-packages\uiautomation\uiautomation.py", line 2670, in GetFirstChildControl
return Control.CreateControlFromElement(comEle)
File "C:\Python27\Lib\site-packages\uiautomation\uiautomation.py", line 2790, in CreateControlFromElement
return ControlDictcontrolType
The text was updated successfully, but these errors were encountered: