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
elementElementThe element to create the adapter for.
Exceptions
- NullReferenceException
If
elementisnull.- 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
MinValue
The minimum value of the progress bar.
public virtual double MinValue { get; }
Property Value
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
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static ProgressBar FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- ProgressBar
The ProgressBar.
Exceptions
- ArgumentNullException
If
elementisnull.- 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
pathstringThe search path.
Returns
- ProgressBar
The ProgressBar.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis 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
elementElementThe element to convert.
Returns
- ProgressBar
The ProgressBar.
Exceptions
- ArgumentNullException
If
elementisnull.- 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
pathstringThe search path.
Returns
- ProgressBar
The ProgressBar.
Remarks
The DefaultSearchTimeout is used to search for the specified path.
Exceptions
- ArgumentNullException
If
pathisnull.- RxPathException
If the specified
pathis not valid.- ElementNotFoundException
If no element is found.
- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.