Interface IEditField
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
IconName
The name of the edit field's icon.
string IconName { get; }
Property Value
IsHighlighted
Indicates whether the edit field is highlighted.
bool IsHighlighted { get; }
Property Value
IsNumerical
Indicates whether the edit field is a numeric field.
bool IsNumerical { get; }
Property Value
IsRequired
Indicates whether the edit field is required.
bool IsRequired { get; }
Property Value
MaxLength
The maximum number of characters that can be entered in the edit field.
uint MaxLength { get; }
Property Value
Text
The string value of the edit field.
string Text { get; }
Property Value
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
posuintThe 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
encodedTextstringThe 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
textstringthe text.