当前位置:   article > 正文

python+pywinauto请问我这个是环境没配置好吗,哪里出问题了呀_pywinauto.timings.timeouterror

pywinauto.timings.timeouterror

D:\Python37\python.exe D:\python2024\240103\pythonProject\pc_test01.py 
Traceback (most recent call last):
  File "D:\Python37\lib\site-packages\pywinauto\application.py", line 258, in __resolve_control
    criteria)
  File "D:\Python37\lib\site-packages\pywinauto\timings.py", line 458, in wait_until_passes
    raise err
pywinauto.timings.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\python2024\240103\pythonProject\pc_test01.py", line 11, in <module>
    dlg.print_control_identifiers()
  File "D:\Python37\lib\site-packages\pywinauto\application.py", line 613, in print_control_identifiers
    this_ctrl = self.__resolve_control(self.criteria)[-1]
  File "D:\Python37\lib\site-packages\pywinauto\application.py", line 261, in __resolve_control
    raise e.original_exception
  File "D:\Python37\lib\site-packages\pywinauto\timings.py", line 436, in wait_until_passes
    func_val = func(*args, **kwargs)
  File "D:\Python37\lib\site-packages\pywinauto\application.py", line 203, in __get_ctrl
    dialog = self.backend.generic_wrapper_class(findwindows.find_element(**criteria[0]))
  File "D:\Python37\lib\site-packages\pywinauto\findwindows.py", line 87, in find_element
    raise ElementNotFoundError(kwargs)
pywinauto.findwindows.ElementNotFoundError: {'best_match': 'Intermediate D3D Window', 'backend': 'uia', 'process': 2252}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/121295
推荐阅读
相关标签
  

闽ICP备14008679号