RowIndex Property (Cell Objects)

Applies to TestComplete 14.80, last modified on April 21, 2021
This property is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This property can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.

Description

Specifies the row index of the table cell to which TestObj corresponds.

Declaration

TestObj.RowIndex

Read-Only Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following object:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

An integer value that specifies the row index. The index is zero-based. The first row has index 0, the second row has index 1 and so on. If the table has a header, the first row (with index 0) belongs to the table's header.

Remarks

This property is available only if the Tree model of web objects is active.

The RowIndex and ColumnIndex properties specify a cell's position within a web table. You can use these properties to assign a custom name for a cell.

Example

To view an example that demonstrates how to use the RowIndex property, see Accessing Rows, Columns and Cells in Syncfusion GridControl.

See Also

Web Table Cell Properties
RowCount Property (WebTable Objects)
Properties Added to Web Test Objects
Tree Model
Web Object Types Used by Web and Hybrid Mobile Applications

Highlight search results