Access timeout factor

Ask general questions here.
Christoph
Posts: 23
Joined: Wed Jul 11, 2012 6:22 am
Location: Liechtenstein

Access timeout factor

Post by Christoph » Mon Sep 03, 2012 6:36 am

Hi,

Is is possible to access the "factor that all timeouts of find operations are multiplied with" by code? (see screenshot) (I'm sure it is possible, I just don't know where to find it). I do not want to change that value, I just want to know that value.

What I'd like to achieve is this: I'm writing a function that performs some actions where it has to wait. I'd like to supply a timeout value how long the function is "willing" to wait before it returns a "failure". Now I thought I would multiply the supplied timeout value with the "factor that all timeouts of find operations are multiplied with" so that the timeout would also increase if I increase that settings.

Thanks for any help.

Christoph
Attachments
timeout factor.jpg
Screenshot of General Settings with the "factor that all timesouts of find" field
timeout factor.jpg (98.27 KiB) Viewed 1071 times

User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

Re: Access timeout factor

Post by artur_gadomski » Mon Sep 03, 2012 7:30 am

As far as I know it's SpeedFactor in Delay class:
http://www.ranorex.com/Documentation/Ra ... _Delay.htm

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Access timeout factor

Post by Support Team » Mon Sep 03, 2012 7:57 am

Hello Christoph,

You can access the setting "factor that all timeouts of find operations are multiplied with" within the code using the following line:
Ranorex.Core.Configuration.Current.Adapter.TimeoutFactor
Regards,
Bernhard
Ranorex Support Team
.
Image