Forum Discussion
eric_robinson
14 years agoOccasional Contributor
Thanks! That works, but tell me why
if (Sys.Process("notepad").WaitWindow("#32770", "About Notepad", 1, 5000).Exists)
takes 5 seconds but
var window = Sys.Process("notepad").WaitWindow("#32770", "About Notepad", 1, 5000)
if (window.Exists)
takes 15 seconds when the default timeout for the project is 10 seconds and the window can't be found? I assume the
window.Exists
methods takes up to the default timeout, which is 10 seconds. So does the Exists in the first line of code not called or is it just treated differently?
Whatever the reason, it does work. I am just curious as to why. Thanks again!
if (Sys.Process("notepad").WaitWindow("#32770", "About Notepad", 1, 5000).Exists)
takes 5 seconds but
var window = Sys.Process("notepad").WaitWindow("#32770", "About Notepad", 1, 5000)
if (window.Exists)
takes 15 seconds when the default timeout for the project is 10 seconds and the window can't be found? I assume the
window.Exists
methods takes up to the default timeout, which is 10 seconds. So does the Exists in the first line of code not called or is it just treated differently?
Whatever the reason, it does work. I am just curious as to why. Thanks again!