Interface IEditField
An edit field in a SAP GUI for Windows application.
Inherited Members
Namespace: HP.LFT.SDK.SAP.GUI
Assembly: HP.LFT.SDK.dll
Syntax
public interface IEditField : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider
Properties
AttachedText
The static text attached to the control.
Declaration
string AttachedText { get; }
Property Value
| Type | Description |
|---|---|
| string |
IconName
The name of the edit field's icon.
Declaration
string IconName { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsHighlighted
Indicates whether the edit field is highlighted.
Declaration
bool IsHighlighted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsNumerical
Indicates whether the edit field is a numeric field.
Declaration
bool IsNumerical { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsRequired
Indicates whether the edit field is required.
Declaration
bool IsRequired { get; }
Property Value
| Type | Description |
|---|---|
| bool |
MaxLength
The maximum number of characters that can be entered in the edit field.
Declaration
uint MaxLength { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Text
The string value of the edit field.
Declaration
string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
OpenPossibleEntries()
Opens the list of possible entries for the edit field.
Declaration
void OpenPossibleEntries()
SetCursorPosition(uint)
Sets the position of the cursor within the edit field.
Declaration
void SetCursorPosition(uint pos)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | pos | The 0-based character position. |
SetFocus()
Sets focus on the edit field.
Declaration
void SetFocus()
SetSecure(string)
Sets the encoded value of this edit box.
Declaration
void SetSecure(string encodedText)
Parameters
| Type | Name | Description |
|---|---|---|
| string | encodedText | 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.
Declaration
void SetText(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | the text. |