Class Delay
- Namespace
- Ranorex
- Assembly
- Ranorex.Core.dll
Provides simple delay functionality which is automatically scaled by a configurable speed factor.
public static class Delay
- Inheritance
-
Delay
- Inherited Members
Properties
SpeedFactor
Gets or sets the speed factor. Set to positive infinity or zero to disable delays. Defaults is '1.0'.
public static double SpeedFactor { get; set; }
Property Value
- double
The speed factor. Delays get reduced by that factor, e.g. a speed factor of 2 reduces delays to half their value.
Exceptions
- ArgumentOutOfRangeException
If the value is negative, NaN, or negative infinity.
Methods
Duration(Duration)
Delays execution for the specified duration.
public static void Duration(Duration duration)
Parameters
durationDurationThe duration.
Remarks
The delay time is scaled by the current SpeedFactor.
Duration(Duration, bool)
Delays execution for the specified duration.
public static void Duration(Duration duration, bool scaleBySpeedFactor)
Parameters
durationDurationThe duration.
scaleBySpeedFactorboolIf set to
truethe delay time is scaled by the current SpeedFactor.
Milliseconds(int)
Delays execution for the specified number of milliseconds.
public static void Milliseconds(int milliseconds)
Parameters
millisecondsintThe number of ms to delay.
Remarks
The delay time is scaled by the current SpeedFactor.
Milliseconds(int, bool)
Delays execution for the specified number of milliseconds.
public static void Milliseconds(int milliseconds, bool scaleBySpeedFactor)
Parameters
millisecondsintThe number of ms to delay.
scaleBySpeedFactorboolIf set to
truethe delay time is scaled by the current SpeedFactor.
Ms(int)
Delays execution for the specified number of milliseconds.
public static void Ms(int milliseconds)
Parameters
millisecondsintThe number of ms to delay.
Remarks
The delay time is scaled by the current SpeedFactor.
Ms(int, bool)
Delays execution for the specified number of milliseconds.
public static void Ms(int milliseconds, bool scaleBySpeedFactor)
Parameters
millisecondsintThe number of ms to delay.
scaleBySpeedFactorboolIf set to
truethe delay time is scaled by the current SpeedFactor.
Seconds(double)
Delays execution for the specified number of seconds.
public static void Seconds(double seconds)
Parameters
secondsdoubleThe seconds.
Remarks
The delay time is scaled by the current SpeedFactor.
Seconds(double, bool)
Delays execution for the specified number of seconds.
public static void Seconds(double seconds, bool scaleBySpeedFactor)
Parameters
secondsdoubleThe seconds.
scaleBySpeedFactorboolIf set to
truethe delay time is scaled by the current SpeedFactor.