pywinauto change default timeout values

心不动则不痛 提交于 2019-12-11 04:25:06

问题


I am using Timings.Defaults() in my pywinauto/python code. However, for certain operations like

app.window_(title_re = windowTitle).Wait('visible', timeout=1)

code waits for 5 seconds if the window is not visible. I have given timeout as 1 seconds but still it waits for 5 seconds. How do I change this 5 second wait to a shorter time?


回答1:


The bug with timings is fixed in pywinauto 0.6.3. Please update it with pip install -U pywinauto.



来源:https://stackoverflow.com/questions/43558087/pywinauto-change-default-timeout-values

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!