To learn more about using JavaScript in LeanFT, see Setting up and working with the JavaScript SDK.
For JavaScript code samples, see Code Samples - JavaScript.

TableCell

Web. TableCell

new TableCell()

A single cell in the Web.TableTO Web object.

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>

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>

text() → {Promise.<string>}

The current text in the cell.
Returns:
a promise that is fulfilled with the text in the cell.
Type
Promise.<string>