public static class SAFSPlus.Tree extends SAFSPlus.Component
By default, all parameters will be processed as an expression (math and string). As the parameter
tree-path may contain separator "->", for example "Root->Child1->GrandChild", it will be evaluated
and 0 will be returned as parameter, this is not expected by user. To avoid the evaluation of
expression, PLEASE CALL
Misc.Expressions(false);
Constructor and Description |
---|
Tree() |
Modifier and Type | Method and Description |
---|---|
static boolean |
CaptureTreeDataToFile(Component tree,
java.lang.String filename,
java.lang.String... params)
Copy the current contents of a tree or a branch to a file.
|
static boolean |
ClickPartial(Component tree,
java.lang.String treepath)
Click a node according to a partial match of its path value.
|
static boolean |
ClickPartial(Component tree,
java.lang.String treepath,
int matchIndex)
Click a node according to a partial match of its path value.
|
static boolean |
ClickTextNode(Component tree,
java.lang.String treepath)
Click a node according to its path and verified the node has been selected.
|
static boolean |
ClickTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Click the Nth node according to its path and verified the node has been selected.
|
static boolean |
ClickUnverifiedTextNode(Component tree,
java.lang.String treepath)
Click a node according to its path, but will not verify the node has been selected.
|
static boolean |
ClickUnverifiedTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Click the Nth node according to its path, but will not verify the node has been selected.
|
static boolean |
Collapse(Component tree,
java.lang.String treepath)
Collapse a node according to its path, and verify this node has been collapsed.
|
static boolean |
Collapse(Component tree,
java.lang.String treepath,
int matchIndex)
Collapse the Nth node according to its path, and verify this node has been collapsed.
|
static boolean |
CollapsePartial(Component tree,
java.lang.String treepath)
Collapse a node according to a partial match of its path value, and verify this node has been collapsed.
|
static boolean |
CollapsePartial(Component tree,
java.lang.String treepath,
int matchIndex)
Collapse a node according to a partial match of its path value, and verify this node has been collapsed.
|
static boolean |
CollapseUnverifiedTextNode(Component tree,
java.lang.String treepath)
Collapse a node according to its path, but will NOT verify this node has been collapsed.
|
static boolean |
CtrlClickUnverifiedTextNode(Component tree,
java.lang.String treepath)
Click a node according to its path, at the same time the key 'CTRL' is pressed.
|
static boolean |
DoubleClickPartial(Component tree,
java.lang.String treepath)
Double click a node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
DoubleClickPartial(Component tree,
java.lang.String treepath,
int matchIndex)
Double click the Nth node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
DoubleClickTextNode(Component tree,
java.lang.String treepath)
Double click a node according to its path, and verify this node has been selected.
|
static boolean |
DoubleClickTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Double Click the Nth node according to its path, and verify this node has been selected.
|
static boolean |
DoubleClickUnverifiedTextNode(Component tree,
java.lang.String treepath)
Double click a node according to its path, but will NOT verify this node has been selected.
|
static boolean |
DoubleClickUnverifiedTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Double Click the Nth node according to its path, but will NOT verify this node has been selected.
|
static boolean |
Expand(Component tree,
java.lang.String treepath)
Expand a node according to its path, and verify this node has been expanded.
|
static boolean |
Expand(Component tree,
java.lang.String treepath,
int matchIndex)
Expand the Nth node according to its path, and verify this node has been expanded.
|
static boolean |
ExpandPartial(Component tree,
java.lang.String treepath)
Expand a node according to a partial match of its path value, and verify this node has been expanded.
|
static boolean |
ExpandPartial(Component tree,
java.lang.String treepath,
int matchIndex)
Expand the Nth node according to a partial match of its path value, and verify this node has been expanded.
|
static boolean |
ExpandTextNode(Component tree,
java.lang.String node)
Expand tree text node.
|
static boolean |
ExpandUnverifiedTextNode(Component tree,
java.lang.String treepath)
Expand a node according to its path, but will NOT verify this node has been expanded.
|
static boolean |
ExpandUnverifiedTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Expand the Nth node according to its path, but will NOT verify this node has been expanded.
|
static boolean |
RightClickPartial(Component tree,
java.lang.String treepath)
Right click a node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
RightClickPartial(Component tree,
java.lang.String treepath,
int matchIndex)
Right click the Nth node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
RightClickTextNode(Component tree,
java.lang.String treepath)
Right click a node according to its path, and verify this node has been selected.
|
static boolean |
RightClickTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Right click the Nth node according to its path, and verify this node has been selected.
|
static boolean |
RightClickUnverifiedTextNode(Component tree,
java.lang.String treepath)
Right click a node according to its path, but will NOT verify this node has been selected.
|
static boolean |
RightClickUnverifiedTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Right click the Nth node according to its path, but will NOT verify this node has been selected.
|
static boolean |
Select(Component tree,
java.lang.String treepath)
Select a node according to its path, and verify this node has been selected.
|
static boolean |
Select(Component tree,
java.lang.String treepath,
int matchIndex)
Select the Nth node according to its path, and verify this node has been selected.
|
static boolean |
SelectPartial(Component tree,
java.lang.String treepath)
Select a node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
SelectPartial(Component tree,
java.lang.String treepath,
int matchIndex)
Select the Nth node according to a partial match of its path value, and verify this node has been selected.
|
static boolean |
SelectTextNode(Component tree,
java.lang.String node)
Select tree text node.
|
static boolean |
SelectUnverifiedTextNode(Component tree,
java.lang.String treepath)
Select a node according to its path, but will NOT verify this node has been selected.
|
static boolean |
SelectUnverifiedTextNode(Component tree,
java.lang.String treepath,
int matchIndex)
Select the Nth node according to its path, but will NOT verify this node has been selected.
|
static boolean |
SetTreeContainsNode(Component tree,
java.lang.String treepath,
java.lang.String variable)
Verify the existence of node according to its path, and set true to a variable if node exists, false if not.
|
static boolean |
SetTreeContainsPartialMatch(Component tree,
java.lang.String treepath,
java.lang.String variable)
Verify the existence of node according to a partial match of its path value, and set true to a variable if node exists, false if not.
|
static boolean |
ShiftClickUnverifiedTextNode(Component tree,
java.lang.String treepath)
Click a node according to its path, at the same time the key 'SHIFT' is pressed.
|
static boolean |
VerifyNodeUnselected(Component tree,
java.lang.String treepath)
Verify the selection of a node according to its path, node should be unselected.
|
static boolean |
VerifySelectedNode(Component tree,
java.lang.String treepath)
Verify the selection of a node according to its path, node should be selected.
|
static boolean |
VerifyTreeContainsNode(Component tree,
java.lang.String treepath)
Verify the existence of a node according to its path.
|
static boolean |
VerifyTreeContainsPartialMatch(Component tree,
java.lang.String treepath)
Verify the selection of a node according to a partial match of its path value.
|
AltLeftDrag, AssignPropertyVariable, CaptureObjectDataToFile, CapturePropertiesToFile, CapturePropertyToFile, ClearCache, Click, CtrlAltLeftDrag, CtrlClick, CtrlLeftDrag, CtrlRightClick, CtrlShiftLeftDrag, DoubleClick, DragTo, ExecuteScript, GetComputedStyle, GetGUIImage, GetTextFromGUI, GUIDoesExist, GUIDoesNotExist, HoverMouse, HoverScreenLocation, InputCharacters, InputKeys, IsPropertyExist, IsPropertyExist, LeftDrag, LocateScreenImage, RightClick, RightDrag, SaveTextFromGUI, ShiftClick, ShiftLeftDrag, ShowOnPage, TypeChars, TypeEncryption, TypeKeys, VerifyBinaryFileToFile, VerifyComputedStyle, VerifyFileToFile, VerifyGUIImageToFile, VerifyObjectDataToFile, VerifyPropertiesSubsetToFile, VerifyPropertiesToFile, VerifyProperty, VerifyPropertyContains, VerifyPropertyContains, VerifyPropertyToFile, VerifyTextFileToFile, VerifyValueContains, VerifyValueContainsIgnoreCase, VerifyValueDoesNotContain, VerifyValues, VerifyValuesIgnoreCase, VerifyValuesNotEqual
public static boolean CaptureTreeDataToFile(Component tree, java.lang.String filename, java.lang.String... params)
tree
- Component (from App Map).filename
- String, The filename to store the tree's contentparams
- Optional
Misc.Expressions(false);
boolean success = Tree.CaptureTreeDataToFile(Map.Google.Tree, "D:\data\tree.dat");
boolean success = Tree.CaptureTreeDataToFile(Map.Google.Tree, "D:\data\grandchild.dat", "Root->Child1->GrandChild");
boolean success = Tree.CaptureTreeDataToFile(Map.Google.Tree, "D:\data\grandchild2.dat", "Root->Child1->GrandChild", "-", "UTF-8");
public static boolean ClickPartial(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click, the string may be part of node text, it is case-sensitive.
Misc.Expressions(false);
boolean success = Tree.ClickPartial(Map.Google.Tree, "Roo->Chi->randChi");
public static boolean ClickPartial(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to click, the string may be part of node text, it is case-sensitive.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.ClickPartial(Map.Google.Tree, "Roo->Chi->randChi", 3);
public static boolean ClickTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.ClickTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean ClickTextNode(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to click.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.ClickTextNode(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean ClickUnverifiedTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.ClickUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean ClickUnverifiedTextNode(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to click.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.ClickUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean CollapsePartial(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to collapse, the string may be part of node text, it is case-sensitive.
Misc.Expressions(false);
boolean success = Tree.CollapsePartial(Map.Google.Tree, "Roo->Chi->randChi");
public static boolean CollapsePartial(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to collapse, the string may be part of node text, it is case-sensitive.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.CollapsePartial(Map.Google.Tree, "Roo->Chi->randChi", 3);
public static boolean Collapse(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.Collapse(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean Collapse(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to click.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.Collapse(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean CollapseUnverifiedTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.CollapseUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean CtrlClickUnverifiedTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.CtrlClickUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean DoubleClickPartial(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.DoubleClickPartial(Map.Google.Tree, "Root->Chil->GrandChi");
public static boolean DoubleClickPartial(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to click.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.DoubleClickPartial(Map.Google.Tree, "Roo->Child->GrandChi", 3);
public static boolean DoubleClickTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.DoubleClickTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean DoubleClickTextNode(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to click.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.DoubleClickTextNode(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean DoubleClickUnverifiedTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.DoubleClickUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean DoubleClickUnverifiedTextNode(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to click.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.DoubleClickUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean Expand(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to expand.
Misc.Expressions(false);
boolean success = Tree.Expand(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean Expand(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to expand.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.Expand(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean ExpandPartial(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to expand.
Misc.Expressions(false);
boolean success = Tree.ExpandPartial(Map.Google.Tree, "Roo->Chil->andChild");
public static boolean ExpandPartial(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to expand.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.ExpandPartial(Map.Google.Tree, "Roo->Chil->GrandCh", 3);
public static boolean ExpandUnverifiedTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to expand.
Misc.Expressions(false);
boolean success = Tree.ExpandUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean ExpandUnverifiedTextNode(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to expand.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.ExpandUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean RightClickTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.RightClickTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean RightClickTextNode(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to click.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.RightClickTextNode(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean RightClickPartial(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.RightClickPartial(Map.Google.Tree, "Root->Chil->andChi");
public static boolean RightClickPartial(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to click.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.RightClickPartial(Map.Google.Tree, "Roo->Chil->GrandChi", 3);
public static boolean RightClickUnverifiedTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.RightClickUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean RightClickUnverifiedTextNode(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to click.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.RightClickUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean Select(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to select.
Misc.Expressions(false);
boolean success = Tree.Select(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean Select(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to select.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.Select(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean SelectPartial(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to select.
Misc.Expressions(false);
boolean success = Tree.SelectPartial(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean SelectPartial(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to select.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.SelectPartial(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean SelectUnverifiedTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to select.
Misc.Expressions(false);
boolean success = Tree.SelectUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean SelectUnverifiedTextNode(Component tree, java.lang.String treepath, int matchIndex)
tree
- Component (from App Map).treepath
- String, The tree path to select.matchIndex
- int, index of the Nth duplicate item to match.
Misc.Expressions(false);
boolean success = Tree.SelectUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild", 3);
public static boolean SetTreeContainsNode(Component tree, java.lang.String treepath, java.lang.String variable)
tree
- Component (from App Map).treepath
- String, The tree path to verify.variable
- String, the variable to store the existence of the node
Misc.Expressions(false);
boolean success = Tree.SetTreeContainsNode(Map.Google.Tree, "Root->Child1->GrandChild", "nodeIsFound");
public static boolean SetTreeContainsPartialMatch(Component tree, java.lang.String treepath, java.lang.String variable)
tree
- Component (from App Map).treepath
- String, The tree path to verify.variable
- String, the variable to store the existence of the node
Misc.Expressions(false);
boolean success = Tree.SetTreeContainsPartialMatch(Map.Google.Tree, "Root->Chil->GrandChi", "nodeIsFound");
public static boolean ShiftClickUnverifiedTextNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to click.
Misc.Expressions(false);
boolean success = Tree.ShiftClickUnverifiedTextNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean VerifyNodeUnselected(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to verify.
Misc.Expressions(false);
boolean success = Tree.VerifyNodeUnselected(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean VerifySelectedNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to verify.
Misc.Expressions(false);
boolean success = Tree.VerifySelectedNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean VerifyTreeContainsNode(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to verify.
Misc.Expressions(false);
boolean success = Tree.VerifyTreeContainsNode(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean VerifyTreeContainsPartialMatch(Component tree, java.lang.String treepath)
tree
- Component (from App Map).treepath
- String, The tree path to verify.
Misc.Expressions(false);
boolean success = Tree.VerifyTreeContainsPartialMatch(Map.Google.Tree, "Root->Child1->GrandChild");
public static boolean SelectTextNode(Component tree, java.lang.String node)
Tree
- Component (from App Map) to get the content.Tree
- text node, separated by "->". ex: main node->child node.
Misc.Expressions(false);
Tree.SelectTextNode(Map.Google.Tree1","node1->node2->node3");
public static boolean ExpandTextNode(Component tree, java.lang.String node)
Tree
- Component (from App Map) to get the content.Tree
- text node, separated by "->". ex: main node->child node.
Misc.Expressions(false);
Tree.ExpandTextNode(Map.Google.Tree1","node1->node2->node3");
Copyright © SAS Institute. All Rights Reserved.