Forum Discussion
Abramova
Staff
14 years agoHi Eric,
The statement if (Sys.Process("notepad").WaitWindow("#32770", "About Notepad", 1, 5000).Exists) takes 5 seconds because you set the Timeout parameter of the WaitWindow method to 5000 milliseconds.
Even if the Auto-wait timeout project property is set to 10, this statement will take 5 seconds, because this option affects neither the WaitWindow method nor the Exists method.
I cannot reproduce the situation when var window = Sys.Process("notepad").WaitWindow("#32770", "About Notepad", 1, 5000)
if (window.Exists) takes 15 seconds.