Package com.hp.lft.sdk.web
Interface TreeView
- All Superinterfaces:
- Clickable,- LocationInfoProvider,- SupportDragAndDrop,- SupportsNativeObject,- TestObject,- TestObjectDescriber,- VisibleProvider,- WaitUntilVisibleProvider,- WebElement,- WebTestObject,- WebTestObjectDescriber
A Web TreeView object
- 
Method SummaryModifier and TypeMethodDescriptionbuildNodePath(Object... nodePathParts) Returns the path of the specified node constructed from the path parts.Returns the set of xpath values that help in running Select, Expand, or Collapse operations on this tree node.Returns the specified node in the tree using the path created with the parts of the path.Returns the specified node in the tree using the full path to the tree item.Returns the path of the selected node in this tree.voidselect(TreeViewNode node) Selects the supplied node in the tree.voidSelects the specified node in the tree based on the path to the node.
 If the child items in this object are generated dynamically (for example, they are not visible or present in the application until the parent node is expanded), the items in the tree cannot be selected automatically using this method.voidsetConfiguration(TreeViewConfiguration configuration) Sets the set of xpath values that help in running select, expand, or collapse operations on this tree node.Methods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDropdragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProviderwaitUntilVisible, waitUntilVisibleMethods inherited from interface com.hp.lft.sdk.web.WebElementdoubleClick, doubleClick, fireEvent, getAccessibilityName, getCSSSelector, getRole, getXPath, hoverTap, hoverTap, longPress, longPress, pan, pan, pinch, pinch, swipe, swipeMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectgetAttribute, getAttributes, getClassName, getComputedStyle, getComputedStyles, getId, getInnerHTML, getInnerText, getName, getOuterHTML, getOuterText, getTagName, getTitle, isVisibleMethods inherited from interface com.hp.lft.sdk.web.WebTestObjectDescriberdescribe, describe
- 
Method Details- 
getSelectedNodePathReturns the path of the selected node in this tree. If there is more than one selected node, the first node is returned.
 Your application must implement the "aria-selected" property for this object to enable OpenText Functional Testing for Developers to display the selected node path.- Returns:
- the path of the selected node in this tree. If there is more than one selected node, the first node is returned.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setConfigurationSets the set of xpath values that help in running select, expand, or collapse operations on this tree node.
 If null or never set the TreeView will use the default implementation of these operations.- Parameters:
- configuration- that contains a set of xpath values that help in running Select, Expand, or Collapse operations on nodes of this tree.
 
- 
getConfigurationTreeViewConfiguration getConfiguration()Returns the set of xpath values that help in running Select, Expand, or Collapse operations on this tree node.
 If this value is null, the TreeView object uses the default implementation of these operations.- Returns:
- the set of xpath values that help in running Select, Expand, or Collapse operations on this tree node.
 
- 
getNodeReturns the specified node in the tree using the full path to the tree item.- Parameters:
- nodePath- the full path of the node to return within the tree, separated by semicolons.
- Returns:
- the specified node.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getNodeReturns the specified node in the tree using the path created with the parts of the path.- Parameters:
- nodePathParts- the tree path parts. This can include the logical name(string), full path(comma-separated strings), or index (0-based).
- Returns:
- the specified node.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
buildNodePathReturns the path of the specified node constructed from the path parts.- Parameters:
- nodePathParts- The path parts to the tree element. This can include the logical name(string), full path(comma-separated strings), or index (0-based).
- Returns:
- the menu path
 
- 
selectSelects the supplied node in the tree.- Parameters:
- node- the TreeViewNode object to select in the tree
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectSelects the specified node in the tree based on the path to the node.
 If the child items in this object are generated dynamically (for example, they are not visible or present in the application until the parent node is expanded), the items in the tree cannot be selected automatically using this method. Manually add steps to make the nodes visible or expand tree nodes to create the object in the application.- Parameters:
- nodePath- the full path to the tree node to select, separated by semicolons
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-