MaxWait

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

int MaxWait;

Remarks

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.

Example

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 June 10, 2020, at 03:02:15 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2020 Eggplant