Skip to main content

RetryInterval

The time in milliseconds that blocking WinDriver actions wait between retry attempts to satisfy the match criteria.

int RetryInterval; //(set/get)

Remarks

Methods such as FindControl, FindControls that wait for a match criteria, retry the match at an interval set by this value until the match is satisfied or the operation timeout value is exceeded.

The default value is 100 milliseconds.

Lower values increase the accuracy of timers waiting for blocking calls but at the expense of increased CPU load.

Example

int OrigRetryInterval = RetryInterval;
RetryInterval = 500; // reduce poll rate to minimize CPU load
WaitForTopWindowCount("My Application", 2); // wait until two "My Application" windows
RetryInterval = OrigRetryInterval;