OpenText™ Functional Testing for Developers JavaScript SDK

UIAPro. GridItemPattern

new GridItemPattern()

The UIA Pro GridItem pattern.

Methods

getColumnIndex() → {Promise.<number>}

Returns the 0-based ordinal number of the column that contains a cell or item.
Returns:
a promise that is fulfilled with the ordinal number of the column that contains a cell or item.
Type
Promise.<number>

getContainingGrid() → {Promise.<Object>}

Retrieves a UI Automation object that supports UIAPro.GridPattern and represents the container of a cell or item. Note: This method is only supported when you enable the legacy UIA Pro Add-in.
Returns:
a promise that is fulfilled with a UIA Pro element.
Type
Promise.<Object>

getContainingGridAsUIObject() → {Promise.<UIAPro.UiObject>}

Retrieves a UI Automation object that supports UIAPro.GridPattern and represents the container of a cell or item. Note: This method is not supported when you enable the legacy UIA Pro Add-in.
Returns:
a promise that is fulfilled with a UIA Pro object.
Type
Promise.<UIAPro.UiObject>

getRowIndex() → {Promise.<number>}

Returns the 0-based ordinal number of the row that contains a cell or item.
Returns:
a promise that is fulfilled with the ordinal number of the row that contains a cell or item.
Type
Promise.<number>

getSpannedColumns() → {Promise.<number>}

Returns the number of columns spanned by a cell or item.
Returns:
a promise that is fulfilled with the number of columns spanned by a cell or item.
Type
Promise.<number>

getSpannedRows() → {Promise.<number>}

Returns the number of rows spanned by a cell or item.
Returns:
a promise that is fulfilled with the number of rows spanned by a cell or item.
Type
Promise.<number>