TreeViewTableTO
Java. TreeViewTableTO
Constructor
new TreeViewTableTO()
Note: The TreeViewTable test object is supported only on JavaFX.
Members
displayName
Methods
$(description) → {*}
Parameters:
Name | Type | Description |
---|---|---|
description | Description | The description of the test object. Can be a full test object description or a string. If a string is provided, it is interpreted as a CSS selector with a default test object type of WebElement. |
Returns:
- Type
- *
$$(description, dontFilterByTypeopt) → {Promise.<Array.<TestObject>>}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
description | A description object that defines the test object type and the set of properties and values that should be common to all objects that are returned. | |||
dontFilterByType | boolean |
<optional> | false | Set this parameter to true to avoid limiting the returned objects to a specific test object type. |
Returns:
- Type
- Promise.<Array.<TestObject>>
absoluteLocation() → {Promise.<Point>}
Remark: 0,0 is always the top-left corner of the (primary) monitor.
Returns:
- Type
- Promise.<Point>
activate(nodePath) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
nodePath | string | The full path of the node to activate within the tree. Tip: Use the Java.TreeViewTableTO#buildNodePath method to build the node path string to be used as the nodeOrPath argument for this method. |
Returns:
- Type
- Promise.<void>
activateCell(row, columnOrIndex) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
row | number | 0-based row number. |
columnOrIndex | string | number | The column header or 0-based column index. |
Returns:
- Type
- Promise.<void>
activateColumn(columnOrIndex) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
columnOrIndex | string | number | The column header or 0-based column index. |
Returns:
- Type
- Promise.<void>
attachedText() → {Promise.<string>}
Returns:
- Type
- Promise.<string>
backgroundColor() → {Promise.<string>}
Returns:
- Type
- Promise.<string>
buildNodePath(…nodePathParts) → {string}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
nodePathParts | string | number |
<repeatable> | The tree node path parts can be: text or 0-based numeric index. For a full path, separate items with commas. |
Returns:
- Type
- string
cells(rowIndexopt, columnOrIndexopt) → {Promise.<(Array.<Array.<TableCell>>|Array.<TableCell>|TableCell)>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
rowIndex | number |
<optional> | The row index of the specific cell. |
columnOrIndex | string | number |
<optional> | The column header or 0-based column index in the row. |
Returns:
- Type
- Promise.<(Array.<Array.<TableCell>>|Array.<TableCell>|TableCell)>
click(argsopt) → {Promise.<void>}
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args | Object |
<optional> | The arguments for the click operation.
Properties
|
Returns:
- Type
- Promise.<void>
collapse(arg) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
arg | string | number | Can be the full path of the node to activate within the tree or a 0-based index of the node or row. Tip: Use the Java.TreeViewTableTO#buildNodePath method to build the node path strings to be used as the argument for this method. |
Returns:
- Type
- Promise.<void>
columnHeaders() → {Promise.<Array.<string>>}
Returns:
- Type
- Promise.<Array.<string>>
columnsCount() → {Promise.<number>}
Returns:
- Type
- Promise.<number>
createObject(className, …argsopt) → {Promise.<Object>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
className | string | The java class name. | |
args | Object |
<optional> <repeatable> | Any arguments required for the object's constructor. |
Returns:
- Type
- Promise.<Object>
description() → {*}
Returns:
- Type
- *
deselect(…nodePaths) → {Promise.<void>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
nodePaths | string |
<repeatable> | The paths of the nodes to deselect. Tip: Use the Java.TreeViewTableTO#buildNodePath method to build the node path strings to be used as arguments for this method. |
Returns:
- Type
- Promise.<void>
deselectColumn(columnOrIndex) → {Promise.<void>}
Important: This method is not supported for SWT tables.
Parameters:
Name | Type | Description |
---|---|---|
columnOrIndex | string | number | The header or 0-based index of the column. |
Returns:
- Type
- Promise.<void>
deselectColumnsRange(fromColumnOrIndex, toColumnOrIndex) → {Promise.<void>}
Important: This method is not supported for SWT tables.
Parameters:
Name | Type | Description |
---|---|---|
fromColumnOrIndex | string | number | The header or 0-based index of the first column. |
toColumnOrIndex | string | number | The header or 0-based index of the last column. |
Returns:
- Type
- Promise.<void>
deselectRange(fromNodePath, toNodePath) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
fromNodePath | string | 0-based index or the full path of the first node in the range. |
toNodePath | string | 0-based index or the full path of the last node in the range. |
Returns:
- Type
- Promise.<void>
deselectRowsRange(fromRow, toRow) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
fromRow | number | 0-based index of the first row. |
toRow | number | 0-based index of the last row. |
Returns:
- Type
- Promise.<void>
doubleClick(argsopt) → {Promise.<void>}
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args | Object |
<optional> | The arguments for the double-click operation.
Properties
|
Returns:
- Type
- Promise.<void>
exists(timeoutopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
timeout | number |
<optional> | The time (in seconds) to wait for this object before returning a result of true or false. By default, uses the object synchronization timeout defined in the runtime engine settings. |
Returns:
- Type
- Promise.<boolean>
expand(arg) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
arg | string | number | Can be the full path of the node to activate within the tree or a 0-based index of the node or row. Tip: Use the Java.TreeViewTableTO#buildNodePath method to build the node path strings to be used as the nodePaths argument for this method. |
Returns:
- Type
- Promise.<void>
extendSelect(…nodePaths) → {Promise.<void>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
nodePaths | string |
<repeatable> | The paths of the nodes to add to the selection. Tip: Use the Java.TreeViewTableTO#buildNodePath method to build the node path strings. |
Returns:
- Type
- Promise.<void>
fireEvent(eventInfo) → {Promise.<void>}
Important: This method is not supported for SWT controls.
Parameters:
Name | Type | Description |
---|---|---|
eventInfo | Java.UiEventInfo | Java.MouseEventInfo | Java.KeyboardEventInfo | The event info describing the event to trigger. |
Returns:
- Type
- Promise.<void>
fireEventByClass(className, eventId, …eventArgsopt) → {Promise.<void>}
Important: This method is not supported for SWT controls.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
className | string | The name of the Java class representing the event to be activated. | |
eventId | string | The event ID number or the final field string that represents the event ID. | |
eventArgs | string | boolean | number |
<optional> <repeatable> | Any parameters of the event's constructor except the source and EventID. |
Returns:
- Type
- Promise.<void>
foregroundColor() → {Promise.<string>}
Returns:
- Type
- Promise.<string>
getNode(index) → {string}
Parameters:
Name | Type | Description |
---|---|---|
index | number | The 0-based index of the node or row you want to retrieve. |
Returns:
- Type
- string
getObjectProperty(propName)
Parameters:
Name | Type | Description |
---|---|---|
propName | The name of the test object property. |
Returns:
getStatics(className) → {Promise.<Object>}
Parameters:
Name | Type | Description |
---|---|---|
className | string | The java class name whose static members you want to access. |
Returns:
- Type
- Promise.<Object>
getTextLocations(text, rectangleopt) → {Promise.<Object>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
text | string | The text to search for in the test object. | |
rectangle | Object |
<optional> | The rectangular area in the test object to search for the text. |
Returns:
- Type
- Promise.<Object>
getVisibleText(rectangleopt) → {Promise.<string>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
rectangle | Object |
<optional> | The rectangular area in the test object to return the text from. |
Returns:
- Type
- Promise.<string>
highlight() → {Promise.<void>}
Remark: This may be useful when debugging a test.
Returns:
- Type
- Promise.<void>
highlightMatches(description, dontFilterByTypeopt) → {Promise.<number>}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
description | A description object that defines the test object type and the set of properties and values that should be common to all objects that are highlighted. | |||
dontFilterByType | boolean |
<optional> | false | Set this parameter to true to avoid limiting the highlighted objects to a specific test object type. |
Returns:
- Type
- Promise.<number>
isEnabled() → {Promise.<boolean>}
Returns:
- Type
- Promise.<boolean>
isFocused() → {Promise.<boolean>}
Returns:
- Type
- Promise.<boolean>
isVisible() → {Promise.<boolean>}
Returns:
- Type
- Promise.<boolean>
isWrapped() → {Promise.<boolean>}
Returns:
- Type
- Promise.<boolean>
label() → {Promise.<string>}
Returns:
- Type
- Promise.<string>
location() → {Promise.<Point>}
Returns:
- Type
- Promise.<Point>
nativeClass() → {Promise.<string>}
Returns:
- Type
- Promise.<string>
nativeObject() → {Promise.<Object>}
Returns:
- Type
- Promise.<Object>
objectName() → {Promise.<string>}
Returns:
- Type
- Promise.<string>
parent() → {*}
Returns:
- Type
- *
path() → {Promise.<string>}
Returns:
- Type
- Promise.<string>
rowsCount() → {Promise.<number>}
Returns:
- Type
- Promise.<number>
select(…nodePaths) → {Promise.<void>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
nodePaths | string |
<repeatable> | The full path of the nodes to select in the tree. |
Returns:
- Type
- Promise.<void>
selectCell(row, columnOrIndex) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
row | number | 0-based row number. |
columnOrIndex | string | number | The column header or 0-based column index. |
Returns:
- Type
- Promise.<void>
selectCellRange(fromRow, fromColumnOrIndex, toRow, toColumnOrIndex) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
fromRow | number | 0-based index of the first row. |
fromColumnOrIndex | string | number | The header or 0-based index of the first column. |
toRow | number | 0-based index of the last row. |
toColumnOrIndex | string | number | The header or 0-based index of the last column. |
Returns:
- Type
- Promise.<void>
selectColumn(columnOrIndex) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
columnOrIndex | string | number | The header or 0-based index of the column. |
Returns:
- Type
- Promise.<void>
selectColumnsRange(fromColumnOrIndex, toColumnOrIndex) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
fromColumnOrIndex | string | number | The header or 0-based index of the first column. |
toColumnOrIndex | string | number | The header or 0-based index of the last column. |
Returns:
- Type
- Promise.<void>
selectedNodes() → {Promise.<Array.<string>>}
Returns:
- Type
- Promise.<Array.<string>>
selectRange(fromNodePath, toNodePath) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
fromNodePath | string | 0-based index or the full path of the first node in the range. |
toNodePath | string | 0-based index or the full path of the last node in the range. |
Returns:
- Type
- Promise.<void>
selectRowsRange(fromRow, toRow) → {Promise.<void>}
Parameters:
Name | Type | Description |
---|---|---|
fromRow | number | 0-based index of the first row. |
toRow | number | 0-based index of the last row. |
Returns:
- Type
- Promise.<void>
sendKeys(inputopt, modifiersopt) → {Promise.<void>}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
input | string |
<optional> | The string to send to the object. Use Keys for special keys. | |
modifiers | KeyModifier |
<optional> | KeyModifier.none | The modifier keys. Use KeyModifier for this parameter. |
Returns:
- Type
- Promise.<void>
size() → {Promise.<Size>}
Returns:
- Type
- Promise.<Size>
snapshot(optionsopt) → {Promise.<string>}
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object |
<optional> | An options object that defines the image capture preferences.
Properties
|
Returns:
- Type
- Promise.<string>
tagName() → {Promise.<string>}
Returns:
- Type
- Promise.<string>
verifyImageExists(imageToFind, similarityopt) → {Promise.<Object>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
imageToFind | string | A Base64 string representation of the image to look for within the test object's snapshot. | |
similarity | number |
<optional> | The minimum similarity between the two images (as a percentage), above which the find is considered a match. Default = 100. |
Returns:
- Type
- Promise.<Object>
verifyImageMatch(expectedImage, pixelToleranceopt, rgbToleranceopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
expectedImage | string | A Base64 string representation of the image to compare to the test object snapshot. | |
pixelTolerance | number |
<optional> | The percentage of pixels that can differ between the two images, and still be considered a match. Default = 0. |
rgbTolerance | number |
<optional> | The percentage by which the RGB values of the pixels in the two images can differ, and still be considered a match. Default = 0. |
Returns:
- Type
- Promise.<boolean>
verifyImageMatchWithMask(expectedImage, maskAreaImage, pixelToleranceopt, rgbToleranceopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
expectedImage | string | A Base64 string representation of the image to compare to the test object snapshot. | |
maskAreaImage | string | A Base64 string representation of the image mask area to use in the image comparison. | |
pixelTolerance | number |
<optional> | The percentage of pixels that can differ between the two images, and still be considered a match. Default = 0. |
rgbTolerance | number |
<optional> | The percentage by which the RGB values of the pixels in the two images can differ, and still be considered a match. Default = 0. |
Returns:
- Type
- Promise.<boolean>
waitUntilEnabled(timeoutopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
timeout | number |
<optional> | The length of time to wait (in milliseconds) for the test object to become enabled. |
Returns:
- Type
- Promise.<boolean>
waitUntilExists(timeoutopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
timeout | number |
<optional> | The time (in seconds) to wait for this object to exist. By default, uses the object synchronization timeout defined in the runtime engine settings. |
Returns:
- Type
- Promise.<boolean>
waitUntilVisible(timeoutopt) → {Promise.<boolean>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
timeout | number |
<optional> | The length of time to wait (in milliseconds) for the test object to become visible. |
Returns:
- Type
- Promise.<boolean>