ColumnCount property returns the number of columns in a row of the web table to which TestObj corresponds.
|A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
The property is applied to the following objects:
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
The property has the following parameter:
Specifies the index of the desired row in the web table. The index is zero-based. The collection of rows includes all the rows of the table (the ones that are in the header, body and footer). So, if the table has a header, then a row with index 0 belongs to the header.
An integer value that specifies the number of columns in the row.
The RowIndex parameter is used because cells in a table can occupy several columns of a row. If all the rows of the table have the same number of columns, then to obtain the number of columns in that table, you can use
This property is available only if the Tree model of web objects is active.
To view an example that demonstrates how to use the
ColumnCount property, see Parsing HTML Tables.