Table of Contents

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

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

ComponentRowCounts

Number of components the UIPicker has.

public virtual string ComponentRowCounts { get; }

Property Value

string

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

string

NumberOfComponents

Number of components the UIPicker has.

public virtual int NumberOfComponents { get; }

Property Value

int

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

element Element

The element to convert.

Returns

IosPicker

The IosPicker.

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 IosPicker FromPath(string path)

Parameters

path string

The search path.

Returns

IosPicker

The IosPicker.

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.

SelectRowInComponent(int, int)

Selects the row at the given index in the specified component.

public virtual void SelectRowInComponent(int component, int row)

Parameters

component int

The component index for the UIPicker. The first column shown in the picker has the index 0.

row int

The 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

element Element

The element to convert.

Returns

IosPicker

The IosPicker.

Exceptions

ArgumentNullException

If element is null.

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

path string

The search path.

Returns

IosPicker

The IosPicker.

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.