Table of Contents

Interface IEditField

Namespace
HP.LFT.SDK.SAP.GUI
Assembly
HP.LFT.SDK.dll

An edit field in a SAP GUI for Windows application.

public interface IEditField : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider
Inherited Members
Extension Methods

Properties

AttachedText

The static text attached to the control.

string AttachedText { get; }

Property Value

string

IconName

The name of the edit field's icon.

string IconName { get; }

Property Value

string

IsHighlighted

Indicates whether the edit field is highlighted.

bool IsHighlighted { get; }

Property Value

bool

IsNumerical

Indicates whether the edit field is a numeric field.

bool IsNumerical { get; }

Property Value

bool

IsRequired

Indicates whether the edit field is required.

bool IsRequired { get; }

Property Value

bool

MaxLength

The maximum number of characters that can be entered in the edit field.

uint MaxLength { get; }

Property Value

uint

Text

The string value of the edit field.

string Text { get; }

Property Value

string

Methods

OpenPossibleEntries()

Opens the list of possible entries for the edit field.

void OpenPossibleEntries()

SetCursorPosition(uint)

Sets the position of the cursor within the edit field.

void SetCursorPosition(uint pos)

Parameters

pos uint

The 0-based character position.

SetFocus()

Sets focus on the edit field.

void SetFocus()

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 value of the edit field.

void SetText(string text)

Parameters

text string

the text.