Class Row
- Namespace
- Ranorex
- Assembly
- Ranorex.Core.dll
Represents a table row.
public class Row : Adapter, IAdapter
- Inheritance
-
Row
- Implements
- Inherited Members
Constructors
Row()
Creates a new Row adapter instance. This constructor is used internally by the Ranorex Core Framework for performance issues!
protected Row()
Row(Element)
Creates a new Row adapter instance.
public Row(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
Cells
Gets the cells contained in the row.
public IList<Cell> Cells { get; }
Property Value
Index
The index of the row in the table.
public virtual int Index { get; }
Property Value
RequiredCapabilities
Capabilities required by the adapter implementation.
protected override string[] RequiredCapabilities { get; }
Property Value
- string[]
Selected
True if the row is currently selected.
public virtual bool Selected { get; set; }
Property Value
Exceptions
- SetAttributeFailedException
Thrown if setting the attribute value failed.
Methods
FromElement(Element)
Converts an Element to an instance of this class.
public static Row FromElement(Element element)
Parameters
elementElementThe element to convert.
Returns
- Row
The Row.
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 Row FromPath(string path)
Parameters
pathstringThe search path.
Returns
- Row
The Row.
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.
Select()
Selects the entire row.
public virtual void Select()
Exceptions
- ActionFailedException
Thrown if invoking the action failed.
Operators
implicit operator Row(Element)
Implicitly converts an Element to an instance of this class.
public static implicit operator Row(Element element)
Parameters
elementElementThe element to convert.
Returns
- Row
The Row.
Exceptions
- ArgumentNullException
If
elementisnull.- CapabilityNotSupportedException
If the element does not support the capabilities required by this adapter.
implicit operator Row(string)
Implicitly converts a string to an instance of this class by searching the root.
public static implicit operator Row(string path)
Parameters
pathstringThe search path.
Returns
- Row
The Row.
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.