Interface ITableCell
A single cell in the ITable Web object.
public interface ITableCell
Properties
ColumnIndex
The cell's 0-based column index.
uint ColumnIndex { get; }
Property Value
ColumnName
The name of the column
string ColumnName { get; }
Property Value
RowIndex
The cell's 0-based row index.
uint RowIndex { get; }
Property Value
Text
The current text in the cell.
string Text { get; }
Property Value
Methods
AsWebElement()
Returns a web element that corresponds to the current table cell, so that it can be used like any other web element.
IWebElement AsWebElement()
Returns
Remarks
Usage: You can, for example, apply Describe() to the returned element, just as you would for any web element.
FindChildren<TChild>(uint)
Returns a child test object from this cell according to its type and index.
TChild FindChildren<TChild>(uint index = 0) where TChild : class, ITestObject
Parameters
indexuintThe index of the requested child with the specified type.
Returns
- TChild
The requested child test object. Otherwise, returns null.
Type Parameters
TChildThe test object type.
NumberOfChildrenWithType<TChild>()
Returns the number of child test objects of the specified type in this cell.
uint NumberOfChildrenWithType<TChild>() where TChild : class, ITestObject
Returns
- uint
The number of child test objects.
Type Parameters
TChildThe test object type.