Skip to main content


The default maximum time in milliseconds to wait for a method to complete. Default value is 120000 (2 minutes).

int MaxWait;


Methods that wait for completion, where no explicit maxWait is specified, will raise an exception (Facilita.Exception.TimeoutException) when this time expires.

This is applied to the methods FindTopWindow, FindControl and all Wait. methods such as WaitForScreenMatch.


int currentMaxWait = MaxWait; // save the current value
MaxWait = 5000; // set to 5 seconds
Control MyControl = FindTopWindow("My Application Title");
MaxWait = currentMaxWait; // restore value