问题
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