Table of Contents

Interface ITreeView

Namespace
HP.LFT.SDK.Web
Assembly
HP.LFT.SDK.dll

A tree control in a Web site or application.

public interface ITreeView : IWebElement, ITestObject, IClickable, IWebTestObject, IWebDescriber, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IVisibleProvider, ISupportDragAndDrop
Inherited Members
Extension Methods

Properties

Configuration

A TreeViewConfiguration that helps run Select, Expand, or Collapse operations on nodes of this tree.

TreeViewConfiguration Configuration { get; set; }

Property Value

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.

string SelectedNodePath { get; }

Property Value

string

Methods

BuildNodePath(params object[])

Returns the path of the specified node constructed from the parts of the path.

string BuildNodePath(params object[] pathParts)

Parameters

pathParts object[]

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

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.

ITreeViewNode GetNode(params object[] pathParts)

Parameters

pathParts object[]

The parts of the tree path. This can include the logical name(string), full path(comma-separated strings), or index (0-based).

Returns

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.

ITreeViewNode GetNode(string nodePath)

Parameters

nodePath string

The full path of the node to return within the tree, separated by semicolons.

Returns

ITreeViewNode

An ITreeViewNode object corresponding to the given path.

Select(ITreeViewNode)

Selects the specified node in this object.

void Select(ITreeViewNode node)

Parameters

node ITreeViewNode

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.

void Select(string nodePath)

Parameters

nodePath string

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.