Page 1 of 1

Global wait time for Objects

Posted: Mon Jan 09, 2012 10:53 pm
by jlowder
Hello,

I'm developing all of my automation in Visual Studio and would like a means to increase the wait time for objects globally. I'm working with one particularly annoying dialog that varies in it's object load times and instead of adding a value at the end of every FindSingle, I'd like to add one "Global" value. Is this possible?

Thanks,

Jason

Re: Global wait time for Objects

Posted: Tue Jan 10, 2012 1:32 pm
by Support Team
Hello,

You can use
Ranorex.Adapter.DefaultSearchTimeout = new Duration(yourDuration);
to set the default search timeout.
The timeout value set to this property is used for searching when implicitly casting a path (in its string representation) to an adapter variable like:
Button button = "pathToButton";
You can also use
Adapter.TimeoutFactor = 0.5;
to multiply all timeouts of find operations with the specific value.

Regards,
Markus
Ranorex Support Team