Interface ITreeView
A tree control in a Web site or application.
Inherited Members
Namespace: HP.LFT.SDK.Web
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITreeView : IWebElement, ITestObject, IClickable, IWebTestObject, IWebDescriber, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IVisibleProvider, ISupportDragAndDrop
Properties
Configuration
A TreeViewConfiguration that helps run Select, Expand, or Collapse operations on nodes of this tree.
Declaration
TreeViewConfiguration Configuration { get; set; }
Property Value
| Type | Description |
|---|---|
| TreeViewConfiguration |
Remarks
Only set this value if the right object for the regular Select, Expand, or Collapse methods is not located.
SelectedNodePath
The path of the selected node in this tree. Your application must implement the "aria-selected" property for this object to enable OpenText Functional Testing for Developers to display the selected node path. If there is more than one selected node, the first node is returned.
Declaration
string SelectedNodePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
BuildNodePath(params object[])
Returns the path of the specified node constructed from the parts of the path.
Declaration
string BuildNodePath(params object[] pathParts)
Parameters
| Type | Name | Description |
|---|---|---|
| object[] | pathParts | The parts of the path to the tree element. This can include the logical name(string), full path(comma-separated strings), or index (0-based). |
Returns
| Type | Description |
|---|---|
| string | The path for the node. |
GetNode(params object[])
Returns the specified node in the tree using the path created with the parts of the path.
Declaration
ITreeViewNode GetNode(params object[] pathParts)
Parameters
| Type | Name | Description |
|---|---|---|
| object[] | pathParts | The parts of the tree path. This can include the logical name(string), full path(comma-separated strings), or index (0-based). |
Returns
| Type | Description |
|---|---|
| ITreeViewNode | An ITreeViewNode object corresponding to the given path. |
GetNode(string)
Returns the specified node in this tree using the full path to the tree item.
Declaration
ITreeViewNode GetNode(string nodePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | nodePath | The full path of the node to return within the tree, separated by semicolons. |
Returns
| Type | Description |
|---|---|
| ITreeViewNode | An ITreeViewNode object corresponding to the given path. |
Select(ITreeViewNode)
Selects the specified node in this object.
Declaration
void Select(ITreeViewNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeViewNode | node | The ITreeViewNode to select in the tree. |
Remarks
If the child items in this object are generated dynamically (for example, if they are not visible or present in the application until the parent node is expanded), the items 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.
Select(string)
Selects the specified node in the tree based on the path to the tree node.
Declaration
void Select(string nodePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | nodePath | The full path to the tree node to select, separated by semicolons. |
Remarks
If the child items in this object are generated dynamically (for example, if they are not visible or present in the application until the parent node is expanded), the items 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.