Table of Contents

Interface IUiObjectBase

Base interface of all WPF test objects.

Namespace: HP.LFT.SDK.WPF
Assembly: HP.LFT.SDK.dll
Syntax
public interface IUiObjectBase : IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject

Properties

AttachedText

The static text that is attached to this object.

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

CanFocus

Indicates whether this object can receive focus.

Declaration
bool CanFocus { get; }
Property Value
Type Description
bool

FullNamePath

The full hierarchy of ObjectName with all parent objects.

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

FullType

The full type name of this object.

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

ObjectName

The name of this instance.

Declaration
string ObjectName { get; }
Property Value
Type Description
string
Remarks

For example, for

myFoo = new fooBar
, the ObjectName is myFoo.

Text

The text associated with this object.

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

Methods

GetObjectProperty<TValue>(string)

Returns the value of a test object property.

Declaration
TValue GetObjectProperty<TValue>(string propName)
Parameters
Type Name Description
string propName

The property name.

Returns
Type Description
TValue
Type Parameters
Name Description
TValue

The property type.

Remarks

This method can return any property of this control, including custom properties declared in a custom control.

MakeVisible()

Scrolls this object into view in the parent window.

Declaration
void MakeVisible()

ShowContextMenu()

Displays this object's context menu.

Declaration
void ShowContextMenu()

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)