Class IosPicker
- Namespace
- Ranorex
- Assembly
- Ranorex.Plugin.Mobile.dll
Capability for an iOS UIPicker control.
public class IosPicker : Adapter, IAdapter
- Inheritance
-
IosPicker
- Implements
- Inherited Members
Constructors
IosPicker()
Creates a new IosPicker adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected IosPicker()
IosPicker(Element)
Creates a new IosPicker adapter instance.
public IosPicker(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
ComponentRowCounts
Number of components the UIPicker has.
public virtual string ComponentRowCounts { get; }
Property Value
ComponentSelections
Selected row for reach component (array). The first entry in the array corresponds to the selected row index in the first component.
public virtual string ComponentSelections { get; }
Property Value
NumberOfComponents
Number of components the UIPicker has.
public virtual int NumberOfComponents { get; }
Property Value
RequiredCapabilities
Capabilities required by the adapter implementation.
protected override string[] RequiredCapabilities { get; }
Property Value
- string[]
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static IosPicker FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- IosPicker
The IosPicker.
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 IosPicker FromPath(string path)
Parameters
pathstringThe search path.
Returns
- IosPicker
The IosPicker.
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.
SelectRowInComponent(int, int)
Selects the row at the given index in the specified component.
public virtual void SelectRowInComponent(int component, int row)
Parameters
componentintThe component index for the UIPicker. The first column shown in the picker has the index 0.
rowintThe row for a component. The first row in the column of a UIPicker has the index 0.
Exceptions
- ActionFailedException
Thrown if invoking the action failed.
Operators
implicit operator IosPicker(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator IosPicker(Element element)
Parameters
elementElementThe element to convert.
Returns
- IosPicker
The IosPicker.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator IosPicker(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator IosPicker(string path)
Parameters
pathstringThe search path.
Returns
- IosPicker
The IosPicker.
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.