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


This topic was last updated on January 13, 2022, at 02:42:23 PM.

Eggplant icon | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant