Table of Contents

Interface IGridBase

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

Base interface for Web grid test objects.

public interface IGridBase : IWebElement, ITestObject, IClickable, IWebTestObject, IWebDescriber, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IVisibleProvider, ISupportDragAndDrop
Inherited Members
Extension Methods

Properties

ColumnHeaders

A list of column headers.

ReadOnlyCollection<string> ColumnHeaders { get; }

Property Value

ReadOnlyCollection<string>

Rows

A list of ITableRow rows.

ReadOnlyCollection<ITableRow> Rows { get; }

Property Value

ReadOnlyCollection<ITableRow>

Methods

FindRowWithCellTextInColumn(TextMatch, ColumnToSearch)

Finds the row with the specified text in the specified column, in cases where the text or columnHeader may appear more than once. Scrolls to the found row if one exists.

ITableRow FindRowWithCellTextInColumn(TextMatch textMatch, ColumnToSearch columnToSearch)

Parameters

textMatch TextMatch

Description of the text we are looking for.

columnToSearch ColumnToSearch

The column number or column header in which to search for the text.

Returns

ITableRow

The requested row if one exists

Remarks

Usage example: var row = grid.FindRowWithCellTextInColumn(TextMatch.Match("Portuguese", 2), ColumnToSearch.ByHeader("Language", 1)); This example finds the 3rd occurrence of the text "Portuguese" in the 2nd column with the header "Language".

Exceptions

GeneralLeanFtException

If the requested row cannot be found or error occurs during execution.

FindRowWithCellTextInColumn(string, string)

Finds the first row with this text in the specified column.

ITableRow FindRowWithCellTextInColumn(string text, string columnHeader)

Parameters

text string

Text to find.

columnHeader string

The column header.

Returns

ITableRow

The requested row, or null if none exists.

FindRowWithCellTextInColumn(string, string, uint)

Finds the first row with the specified text in the specified column, starting from the specified row.

ITableRow FindRowWithCellTextInColumn(string text, string columnHeader, uint startFromRow)

Parameters

text string

Text to find.

columnHeader string

The column header.

startFromRow uint

Index from which to start the search.

Returns

ITableRow

The requested row, or null if none exists.

FindRowWithCellTextInColumn(string, uint)

Finds the first row with this text in the specified column.

ITableRow FindRowWithCellTextInColumn(string text, uint columnNumber)

Parameters

text string

Text to find.

columnNumber uint

The column number to search.

Returns

ITableRow

The requested row, or null if none exists.

FindRowWithCellTextInColumn(string, uint, uint)

Finds the first row with the specified text in the specified column, starting from the specified row.

ITableRow FindRowWithCellTextInColumn(string text, uint columnNumber, uint startFromRow)

Parameters

text string

Text to find.

columnNumber uint

The column number to search.

startFromRow uint

Index from which to start the search.

Returns

ITableRow

The requested row, or null if none exists.

SelectCell(uint, string)

Selects the specified cell in the grid.

void SelectCell(uint row, string columnHeader)

Parameters

row uint

0-based row number.

columnHeader string

The column header.

SelectCell(uint, uint)

Selects the specified cell in the grid.

void SelectCell(uint row, uint column)

Parameters

row uint

0-based row number.

column uint

0-based column index.