Table of Contents

Interface ITableBase<T>

The base interface for table, grid and APO grid objects in a SAP GUI for Windows application.

Namespace: HP.LFT.SDK.SAP.GUI
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITableBase<T> : IEnabledProvider, IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject where T : ITableCellBase
Type Parameters
Name Description
T

Properties

Rows

The rows in the object.

Declaration
ReadOnlyCollection<ITableRow<T>> Rows { get; }
Property Value
Type Description
ReadOnlyCollection<ITableRow<T>>

Title

The title of the object.

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

Methods

ActivateCell(uint, string)

Double-clicks a cell by row index and column name.

Declaration
void ActivateCell(uint row, string column)
Parameters
Type Name Description
uint row

The 1-based row index.

string column

The name of the column.

ActivateCell(uint, uint)

Double-clicks a cell by row and column index.

Declaration
void ActivateCell(uint row, uint columnIndex)
Parameters
Type Name Description
uint row

The 1-based row index.

uint columnIndex

The 1-based column index.

DeselectColumn(params string[])

Unselects the specified columns by names.

Declaration
void DeselectColumn(params string[] columns)
Parameters
Type Name Description
string[] columns

The names of the columns to deselect.

DeselectColumn(params uint[])

Unselects the specified columns by indexes.

Declaration
void DeselectColumn(params uint[] columnIndices)
Parameters
Type Name Description
uint[] columnIndices

The 1-based indexes of the columns to deselect.

DeselectRow(params uint[])

Unselects the specified rows.

Declaration
void DeselectRow(params uint[] rowIndices)
Parameters
Type Name Description
uint[] rowIndices

The 1-based row indices.

DeselectRowRange(uint, uint)

Unselects the specified rows.

Declaration
void DeselectRowRange(uint indexFrom, uint indexTo)
Parameters
Type Name Description
uint indexFrom

The 1-based index of the first row in the range.

uint indexTo

The 1-based index of the last row in the range.

FindAllRowsWithCellTextInColumn(string, string)

Finds all rows with the specified text in the specified column, by column name.

Declaration
ReadOnlyCollection<ITableRow<T>> FindAllRowsWithCellTextInColumn(string text, string column)
Parameters
Type Name Description
string text

The text to search for.

string column

The column to search.

Returns
Type Description
ReadOnlyCollection<ITableRow<T>>

The rows. Null if text not found.

FindAllRowsWithCellTextInColumn(string, uint)

Returns all rows with the specified text in the specified column, by column index.

Declaration
ReadOnlyCollection<ITableRow<T>> FindAllRowsWithCellTextInColumn(string text, uint columnIndex)
Parameters
Type Name Description
string text

The text to search for.

uint columnIndex

The 1-based index of the column to search.

Returns
Type Description
ReadOnlyCollection<ITableRow<T>>

The rows. Null if text not found.

FindRowWithCellTextInColumn(string, string)

Returns the first row in a column that contains the specified text, by column name.

Declaration
ITableRow<T> FindRowWithCellTextInColumn(string text, string column)
Parameters
Type Name Description
string text

The The text to search for.

string column

The column to search.

Returns
Type Description
ITableRow<T>

The row. Null if text not found.

FindRowWithCellTextInColumn(string, string, uint)

Returns the next row in a column (by column name) that contains the specified text, starting the search at the specified row.

Declaration
ITableRow<T> FindRowWithCellTextInColumn(string text, string column, uint startFromRow)
Parameters
Type Name Description
string text

The text to search for.

string column

The column to search.

uint startFromRow

The 1-based index of the row from which to start the search.

Returns
Type Description
ITableRow<T>

The row. Null if text not found.

FindRowWithCellTextInColumn(string, uint)

Returns the first row in a column that contains the specified text, by column index.

Declaration
ITableRow<T> FindRowWithCellTextInColumn(string text, uint columnIndex)
Parameters
Type Name Description
string text

The The text to search for.

uint columnIndex

The 1-based index of the column to search.

Returns
Type Description
ITableRow<T>

The row. Null if text not found.

FindRowWithCellTextInColumn(string, uint, uint)

Returns the next row in a column (by column index) that contains the specified text, starting the search at the specified row.

Declaration
ITableRow<T> FindRowWithCellTextInColumn(string text, uint columnIndex, uint startFromRow)
Parameters
Type Name Description
string text

The text to search for.

uint columnIndex

The 1-based index of the column to search.

uint startFromRow

The 1-based index of the row from which to start the search.

Returns
Type Description
ITableRow<T>

The row. Null if text not found.

SelectCell(uint, string)

Selects a cell by row index and column name.

Declaration
void SelectCell(uint row, string column)
Parameters
Type Name Description
uint row

The 1-based row index.

string column

The name of the column.

SelectCell(uint, uint)

Selects a cell by row and column index.

Declaration
void SelectCell(uint row, uint columnIndex)
Parameters
Type Name Description
uint row

The 1-based row index.

uint columnIndex

The 1-based column index.

SelectColumn(params string[])

Selects the specified columns by column names.

Declaration
void SelectColumn(params string[] columns)
Parameters
Type Name Description
string[] columns

The names of the columns to select.

SelectColumn(params uint[])

Selects the specified columns by column indexes.

Declaration
void SelectColumn(params uint[] columns)
Parameters
Type Name Description
uint[] columns

The 1-based indexes of the columns to select.

SelectRow(params uint[])

Selects the specified rows in the object.

Declaration
void SelectRow(params uint[] rows)
Parameters
Type Name Description
uint[] rows

The 1-based row numbers.

SelectRowRange(uint, uint)

Selects the specified row range.

Declaration
void SelectRowRange(uint indexFrom, uint indexTo)
Parameters
Type Name Description
uint indexFrom

The 1-based index of the first row in the range.

uint indexTo

The 1-based index of the last row in the range.

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)