Table of Contents

Interface IUiObjectBase

Namespace
HP.LFT.SDK.WinForms
Assembly
HP.LFT.SDK.dll

Base for .NET Windows Forms test objects.

public interface IUiObjectBase : IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject
Inherited Members
Extension Methods

Properties

FullNamePath

The full hierarchy of this object with all parent objects.

string FullNamePath { get; }

Property Value

string

FullType

The full type name of this object.

string FullType { get; }

Property Value

string

IsChildWindow

Indicates whether this object's window is a child window.

bool IsChildWindow { get; }

Property Value

bool

IsOwnedWindow

Indicates whether this object's window has an owner window.

bool IsOwnedWindow { get; }

Property Value

bool

ObjectName

The instance's name.

string ObjectName { get; }

Property Value

string

Remarks

For example, for

myFoo = new fooBar
, the ObjectName is myFoo.

Text

The text associated with this object.

string Text { get; }

Property Value

string

WindowClassRegExp

The permanent part of the MFC window class.

string WindowClassRegExp { get; }

Property Value

string

WindowId

This object's window identifier.

int WindowId { get; }

Property Value

int

Methods

FireEvent(string, params object[])

Simulates an event on a .NET object.

void FireEvent(string type, params object[] args)

Parameters

type string

The name of the event to simulate. The list of possible events depends on the object.

args object[]

The Args argument is passed to the constructor of the event's EventArgs object or the implementing class.

GetObjectProperty<TValue>(string)

Returns the value of a test object property.

TValue GetObjectProperty<TValue>(string propName)

Parameters

propName string

The name of the test object property.

Returns

TValue

Type Parameters

TValue

The type of the test object property.

Remarks

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