Table of Contents

Interface ITreeView

A .NET Windows Forms tree-view object.

Inherited Members
IUiObjectBase.FireEvent(string, params object[])
IUiObjectBase.GetObjectProperty<TValue>(string)
IUiObjectBase.IsChildWindow
IUiObjectBase.IsOwnedWindow
IUiObjectBase.ObjectName
IUiObjectBase.FullNamePath
IUiObjectBase.FullType
IUiObjectBase.Text
IUiObjectBase.WindowClassRegExp
IUiObjectBase.WindowId
IUiObjectBase.MouseMove(Location)
IUiObjectBase.IsFocused
IUiObjectBase.NativeClass
IUiObjectBase.WindowTitleRegExp
IUiObjectBase.Handle
IClickable.Click(MouseButton)
IClickable.Click(ClickArgs)
IDoubleClickable.DoubleClick(MouseButton)
IDoubleClickable.DoubleClick(ClickArgs)
ILocationInfoProvider.Location
ILocationInfoProvider.AbsoluteLocation
ILocationInfoProvider.Size
ISupportSendKeys.SendKeys(string, KeyModifier)
ISupportSendKeys.SendKeys(string)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop, DragAndDropArgs)
IEnabledProvider.IsEnabled
IVisibleProvider.IsVisible
ISupportsNativeObject.NativeObject
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
ITestObjectDescriber.Describe<TChild>(IDescription)
Namespace: HP.LFT.SDK.WinForms
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITreeView : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber

Properties

CheckedVisibleNodes

Returns the checked visible nodes in this tree-view object.

Declaration
ReadOnlyCollection<ITreeViewNode> CheckedVisibleNodes { get; }
Property Value
Type Description
ReadOnlyCollection<ITreeViewNode>

ErrorText

Returns the tooltip text of the error icon associated with this object.

Declaration
string ErrorText { get; }
Property Value
Type Description
string

SelectedNodes

Returns the selected nodes in this tree view object.

Declaration
ReadOnlyCollection<ITreeViewNode> SelectedNodes { get; }
Property Value
Type Description
ReadOnlyCollection<ITreeViewNode>

VisibleNodes

Returns the visible nodes in this tree view object.

Declaration
ReadOnlyCollection<ITreeViewNode> VisibleNodes { get; }
Property Value
Type Description
ReadOnlyCollection<ITreeViewNode>

Methods

ActivateNode(ITreeViewNode, MouseButton)

Activates (double-clicks) a node in this tree-view object.

Declaration
void ActivateNode(ITreeViewNode node, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
ITreeViewNode node

The node to activate.

MouseButton button

Optional. The mouse button used to activate the node. Default is left button.

ActivateNode(int, MouseButton)

Activates (double-clicks) a node in this tree-view object by node index.

Declaration
void ActivateNode(int nodeIndex, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
int nodeIndex

The index of the node to activate.

MouseButton button

Optional: The mouse button used to activate the node. (default value: left button)

ActivateNode(string, MouseButton)

Activates (double-clicks) a node in this tree-view object.

Declaration
void ActivateNode(string node, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
string node

The node to activate

MouseButton button

Optional: The mouse button used to activate node. (default value: left button)

GetNode(string)

Returns the node at the given path. If the path is not unique, the first matching node is returned.

Declaration
ITreeViewNode GetNode(string nodePath)
Parameters
Type Name Description
string nodePath

The path of the node to retrieve separated by ';' char.

Returns
Type Description
ITreeViewNode

Select(ITreeViewNode, MouseButton)

Selects a node in this tree view object.

Declaration
void Select(ITreeViewNode node, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
ITreeViewNode node

The node to select.

MouseButton button

Optional. The mouse button used to select the node. Default is left button.

Select(int, MouseButton)

Selects a node in this tree view object by node index.

Declaration
void Select(int nodeIndex, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
int nodeIndex

The index of the node to select.

MouseButton button

Optional: The mouse button used to select the node. (default value: left button)

Select(string, MouseButton)

Selects a node in this tree view object.

Declaration
void Select(string node, MouseButton button = MouseButton.Left)
Parameters
Type Name Description
string node

The node to select .

MouseButton button

Optional: The mouse button used to select the node. (default value: left button)

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
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)