Search code examples
pywinauto

pywinauto change default timeout values


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?


Solution

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