Automation Guide
Action-based testing language
TestArchitect Automation Classes
Automation classes
AbtTree ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAAXklEQVRIiWNgGAWjAAoYoZhmhk9kYGCYQStLHBgYGP4xMDD8h1pEE0vSkSyhmU9GqCVMtHABJYCmQTR0DXdgoCCjMROh5iEDA4MgAwPDRQYGhlyoRVQHNC3sRsEQBwD2mR7t73r7NQAAAABJRU5ErkJggg==)
The requested page is not available for selected version.
GetNodeStates
Syntax
long GetNodeStates(string nodepath, string states)
Description
Retrieve all states of a specified node in a tree control.
Parameters
nodepath
String specifying the path to the node.
The node path may be specified as one of the following:
- A string containing all node texts separated by forward slashes ( / ).
- A string containing all node indexes separated by forward slashes ( / ).
states
Returned string listing all current states of the node, separated by commas. Possible listed states are:
- CHECKED or UNCHECKED or DIMMED
- SELECTED or UNSELECTED
- EXPANDED or COLLAPSED
Return Value
Return 0 if the call is successful; otherwise, -1..