Waiting for some time until the exception of the next code segment in python3.2

I write code to run the gui (winmerge) application, and then send it a few keystrokes. I need to wait some time in the program until the graphical interface is complete, and then send it a few taps to save the report. How to implement this? wait()does not work, because after calling it, I can’t send the keys to the same window. Please, help

+5
source share
1 answer
from time import sleep
print "hi,"
sleep(5)
print "this is printed 5 seconds later"
+13
source

All Articles