Table of Contents

Interface IEditField

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

A .NET Windows Forms edit box.

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

Properties

ErrorText

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

string ErrorText { get; }

Property Value

string

Methods

Select(int, int)

Selects specified text in this edit box. All positions are 0-based.

void Select(int fromCharPos, int toCharPos)

Parameters

fromCharPos int

Character position from which selection starts, inclusive.

toCharPos int

Character position at which selection ends, inclusive.

SetSecure(string)

Sets the encoded value of this edit box.

void SetSecure(string encodedText)

Parameters

encodedText string

The encoded text to enter in this edit box.

Remarks

Generate the encoded value using the Password Encoder utility, available from the OpenText Functional Testing for Developers > Tools menu in your IDE or from the Windows Start menu.

Note: The SetSecure method enables you to hide passwords displayed on the screen while running or editing a test, but it is not intended to be a secure way to protect password information.

SetText(string)

Sets the text associated with this edit box.

void SetText(string text)

Parameters

text string

The text to be entered in this edit field.