Table of Contents

Interface ITreeView

A tree control in a Web site or application.

Inherited Members
IWebElement.DoubleClick()
IWebElement.DoubleClick(WebDoubleClickArgs)
IWebElement.HoverTap()
IWebElement.HoverTap(Location)
IWebElement.FireEvent(EventInfo)
IWebElement.LongPress()
IWebElement.LongPress(WebLongPressArgs)
IWebElement.Pan(long, long)
IWebElement.Pan(WebPanArgs)
IWebElement.Pinch(double)
IWebElement.Pinch(WebPinchArgs)
IWebElement.Swipe(SwipeDirection)
IWebElement.Swipe(WebSwipeArgs)
IWebElement.XPath
IWebElement.AccessibilityName
IWebElement.CSSSelector
IWebElement.Role
ITestObject.GetDescription()
ITestObject.SetDescription(IDescription)
ITestObject.FindChildren<TChild>(IDescription)
ITestObject.Exists()
ITestObject.Exists(uint)
ITestObject.GetSnapshot()
ITestObject.Highlight()
ITestObject.HighlightMatches<TChild>(IDescription)
ITestObject.GetTextLocations(string)
ITestObject.GetTextLocations(string, Rectangle)
ITestObject.GetVisibleText()
ITestObject.GetVisibleText(Rectangle)
ITestObject.VerifyImageExists(Image, byte)
ITestObject.VerifyImageMatch(Image, byte, byte)
ITestObject.VerifyImageMatch(Image, ImageMaskArea, byte, byte)
ITestObject.CallFTMethod(string, params object[])
ITestObject.CallFTMethod<TResult>(string, params object[])
ITestObject.Parent
ITestObject.DisplayName
IClickable.Click(MouseButton)
IClickable.Click(ClickArgs)
IWebTestObject.GetAttribute(string)
IWebTestObject.GetComputedStyle(string)
IWebTestObject.Describe<TChild>(IDescription)
IWebTestObject.Describe<TChild>(XPathDescription)
IWebTestObject.Describe<TChild>(CSSDescription)
IWebTestObject.ClassName
IWebTestObject.Id
IWebTestObject.TagName
IWebTestObject.InnerHTML
IWebTestObject.OuterHTML
IWebTestObject.InnerText
IWebTestObject.OuterText
IWebTestObject.Name
IWebTestObject.Title
IWebTestObject.Attributes
IWebTestObject.Styles
ILocationInfoProvider.Location
ILocationInfoProvider.AbsoluteLocation
ILocationInfoProvider.Size
ISupportsNativeObject.NativeObject
IVisibleProvider.IsVisible
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop, DragAndDropArgs)
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.

Extension Methods

TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)