Skip to main content

RetryInterval

The default retry time in millisecond for methods that wait for a match. The default value is 100 milliseconds.

int RetryInterval;

Remarks

Methods that wait for a match criteria for completion, will retry at this interval, will raise an exception (Facilita.Exception.TimeoutException) when this time expires.

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

Example

int currentRetryInterval = RetryInterval; // save the current value
RetryInterval = 500; // set to 0.5 second
Control MyControl = FindTopWindow("My Application Title");

RetryInterval = currentRetryIntervalt; // restore value