Share this page
TableCell
Members
(static) prototype
memberof TableCell
Methods
$(childTypeopt) → {Promise.<TestObject>}
Returns a child test object from this cell according to its type and index (if presented in the description).
Parameters:
Name | Type | Attributes | Default | Description |
---|
childType | Description |
<optional>
|
Web.Element
| The description of the child test object, for example Web.Link().
Note: all description fields except index will be ignored. |
Returns:
a promise that is fulfilled with the child test object.
-
Type
- Promise.<TestObject>
asWebElement() → {Promise.<WebElement>}
Returns a web element that corresponds to the current table cell, so that it can be used like any other web element.
For example, you can then apply Describe() to it, just as you would for any web element.
Returns:
a promise that is fulfilled with a WebElement that corresponds to the current table cell.
-
Type
- Promise.<WebElement>
columnIndex() → {number}
The 0-based column index of the cell.
Returns:
the 0-based column index of the cell.
-
Type
- number
countOf(childTypeopt) → {Promise.<number>}
Returns the number of child test objects of the specified type in this cell.
Parameters:
Name | Type | Attributes | Default | Description |
---|
childType | Description |
<optional>
|
Web.Element
| The description of the child test object, for example Web.Link(). |
Returns:
a promise that is fulfilled with the number of test objects that were found.
-
Type
- Promise.<number>
rowIndex() → {number}
The 0-based row index of the cell.
Returns:
the 0-based row index of the cell.
-
Type
- number
text() → {Promise.<string>}
The current text in the cell.
Returns:
a promise that is fulfilled with the text in the cell.
-
Type
- Promise.<string>
Tips to improve your search results...
UFT Developer JavaScript SDK ReferenceVersion: 2021-24.2UFT Developer SDK ReferenceAllView Local Help CenterView Online Help CenterVersion: