Links

TableBase

Description

Abstract base class for tables. Needs to be inherited to implement specific methods to define containing rectangle and columns. Can be used with provided Column and Row or inherited implementations of Column and Row.
You can add a new table by using the Table item template. The following video explains how to do this:

TableBase(TColumn, TRow) Class (abstract)

Namespace: Progile.TRIO.BaseModel Assembly: Progile.TRIO.BaseModel (in Progile.TRIO.BaseModel.dll)

Type Parameters:

Type Parameter
Description
TColumn
Type: Column
The type of column that shall be used for the table.
TRow
Type: Row
The type of row that shall be used for the table.

Inheritance Hierarchy:

Object Progile.TRIO.BaseModel.OnScreenElement Progile.TRIO.BaseModel.TableBase<TColumn, TRow>

Constructors

TableBase(ITester, string, ImageReference, IImageFilter[ ])

Syntax:
protected TableBase(
ITester tester,
string displayName,
ImageReference imageReference,
params IImageFilter[] filters
)
Parameter
Description
tester
Type: ITester
The tester interface.
displayName
Type: String The name of the table that will be used for logging and reporting of exceptions (customer facing).
imageReference
Type: ImageReference The image reference that will be used to locate the table on the screen.
filters
Type: IImageFilter[ ] Typically a Select filter indicating the area of interest for the image search.

TableBase(ITester, string, string, IImageFilter[ ])

Syntax:
protected TableBase(
ITester tester,
string displayName,
string searchText,
params IImageFilter[] filters
)
Parameter
Description
tester
Type: ITester
The tester interface.
displayName
Type: String The name of the table that will be used for logging and reporting of exceptions (customer facing).
searchText
Type: String The search text that will be used to locate the table on the screen.
filters
Type: IImageFilter[ ] Typically a Select filter indicating the area of interest for the text search.

Methods

Name
Description
GetCell
Returns a Select filter of a particular cell in the provided column and row
GetRow
Searches a specific row based on a text or image search in the provided searchColumn (includes scrolling). By default, method throws an exception if it cannot find the expected row. If returnNullInsteadOfFail is true, it returns null instead of throwing the exception.
Similar to GetRow, but checks that additional values are as expected in additional columns. Useful when main search column contains multiple rows with same value, that can be distinguished by values in other columns.
Verifies the text in a particular cell in the provided column and row matches the contentToVerify

Properties

Name
Description
Scroller
Gets or sets the scroller for the table.
Gets the Select filter for the table.