Table of Contents

Interface ITableCell

A single cell in the ITable Web object.

Namespace: HP.LFT.SDK.Web
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITableCell

Properties

ColumnIndex

The cell's 0-based column index.

Declaration
uint ColumnIndex { get; }
Property Value
Type Description
uint

ColumnName

The name of the column

Declaration
string ColumnName { get; }
Property Value
Type Description
string

RowIndex

The cell's 0-based row index.

Declaration
uint RowIndex { get; }
Property Value
Type Description
uint

Text

The current text in the cell.

Declaration
string Text { get; }
Property Value
Type Description
string

Methods

AsWebElement()

Returns a web element that corresponds to the current table cell, so that it can be used like any other web element.

Declaration
IWebElement AsWebElement()
Returns
Type Description
IWebElement
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.

Declaration
TChild FindChildren<TChild>(uint index = 0) where TChild : class, ITestObject
Parameters
Type Name Description
uint index

The index of the requested child with the specified type.

Returns
Type Description
TChild

The requested child test object. Otherwise, returns null.

Type Parameters
Name Description
TChild

The test object type.

NumberOfChildrenWithType<TChild>()

Returns the number of child test objects of the specified type in this cell.

Declaration
uint NumberOfChildrenWithType<TChild>() where TChild : class, ITestObject
Returns
Type Description
uint

The number of child test objects.

Type Parameters
Name Description
TChild

The test object type.