Table of Contents

Class ProgressBar

Namespace
Ranorex
Assembly
Ranorex.Core.dll

Represents a progress bar.

public class ProgressBar : Adapter, IAdapter
Inheritance
ProgressBar
Implements
Inherited Members

Constructors

ProgressBar()

Creates a new ProgressBar adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!

protected ProgressBar()

ProgressBar(Element)

Creates a new ProgressBar adapter instance.

public ProgressBar(Element element)

Parameters

element Element

The element to create the adapter for.

Exceptions

NullReferenceException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Properties

MaxValue

The maximum value of the progress bar.

public virtual double MaxValue { get; }

Property Value

double

MinValue

The minimum value of the progress bar.

public virtual double MinValue { get; }

Property Value

double

RequiredCapabilities

Capabilities required by the adapter implementation.

protected override string[] RequiredCapabilities { get; }

Property Value

string[]

Value

The value of the progress bar.

public virtual double Value { get; }

Property Value

double

Methods

FromElement(Element)

Converts an Element to an instance of this class.

public static ProgressBar FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

ProgressBar

The ProgressBar.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

FromPath(string)

Converts a string to an instance of this class by searching the root.

public static ProgressBar FromPath(string path)

Parameters

path string

The search path.

Returns

ProgressBar

The ProgressBar.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

Operators

implicit operator ProgressBar(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator ProgressBar(Element element)

Parameters

element Element

The element to convert.

Returns

ProgressBar

The ProgressBar.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.

implicit operator ProgressBar(string)

Implicitly converts a string to an instance of this class by searching the root.

public static implicit operator ProgressBar(string path)

Parameters

path string

The search path.

Returns

ProgressBar

The ProgressBar.

Remarks

The DefaultSearchTimeout is used to search for the specified path.

Exceptions

ArgumentNullException

If path is null.

RxPathException

If the specified path is not valid.

ElementNotFoundException

If no element is found.

CapabilityNotSupportedException

If the element does not support the capabilities required by this adapter.