Global wait time for Objects : Automation API

Global wait time for Objects

Class library usage, coding and language questions.

Global wait time for Objects

Postby jlowder » Mon Jan 09, 2012 11:53 pm

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
jlowder
 
Posts: 55
Joined: Wed Dec 30, 2009 3:56 pm

Re: Global wait time for Objects

Postby Support Team » Tue Jan 10, 2012 2:32 pm

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
User avatar
Support Team
Site Admin
 
Posts: 4843
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: Support Team and 0 guests