Table of Contents

Interface ITableCell

Namespace
HP.LFT.SDK.Web
Assembly
HP.LFT.SDK.dll

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

uint

ColumnName

The name of the column

string ColumnName { get; }

Property Value

string

RowIndex

The cell's 0-based row index.

uint RowIndex { get; }

Property Value

uint

Text

The current text in the cell.

string Text { get; }

Property Value

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.

IWebElement AsWebElement()

Returns

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.

TChild FindChildren<TChild>(uint index = 0) where TChild : class, ITestObject

Parameters

index uint

The index of the requested child with the specified type.

Returns

TChild

The requested child test object. Otherwise, returns null.

Type Parameters

TChild

The 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

TChild

The test object type.