Table of Contents

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

duration Duration

The 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

duration Duration

The duration.

scaleBySpeedFactor bool

If set to true the 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

milliseconds int

The 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

milliseconds int

The number of ms to delay.

scaleBySpeedFactor bool

If set to true the 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

milliseconds int

The 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

milliseconds int

The number of ms to delay.

scaleBySpeedFactor bool

If set to true the 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

seconds double

The 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

seconds double

The seconds.

scaleBySpeedFactor bool

If set to true the delay time is scaled by the current SpeedFactor.