Table of Contents

Class IosTable

Namespace
Ranorex
Assembly
Ranorex.Plugin.Mobile.dll

This capability adds iOS specific attributes to the UI element.

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

Constructors

IosTable()

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

protected IosTable()

IosTable(Element)

Creates a new IosTable adapter instance.

public IosTable(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

NumOfRowsPerSection

Number of rows each section has (array). The first entry in the array corresponds to the row count in the first section of an UITableView.

public virtual string NumOfRowsPerSection { get; }

Property Value

string

NumOfSections

Number of sections the UITable has.

public virtual int NumOfSections { 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 IosTable FromElement(Element element)

Parameters

element Element

The element to convert.

Returns

IosTable

The IosTable.

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

Parameters

path string

The search path.

Returns

IosTable

The IosTable.

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.

ScrollTable(int, int)

Scrolls a table so that the given section and row will be the first visible item in the table.

public virtual void ScrollTable(int Section, int row)

Parameters

Section int

The index of a table section.

row int

The row to that shall be scrolled to. See Apple's documentation on UITable class for more information.

Exceptions

ActionFailedException

Thrown if invoking the action failed.

Operators

implicit operator IosTable(Element)

Implicitly converts an Element to an instance of this class.

public static implicit operator IosTable(Element element)

Parameters

element Element

The element to convert.

Returns

IosTable

The IosTable.

Exceptions

ArgumentNullException

If element is null.

CapabilityNotSupportedException

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

implicit operator IosTable(string)

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

public static implicit operator IosTable(string path)

Parameters

path string

The search path.

Returns

IosTable

The IosTable.

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.