Package com.hp.lft.sdk.sap.gui
Interface EditField
- All Superinterfaces:
- Element,- EnabledProvider,- LocationInfoProvider,- SupportsNativeObject,- TestObject,- TestObjectDescriber,- WaitUntilEnabledProvider
An edit field in a SAP GUI for Windows application.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the static text attached to the edit field.Returns the name of the edit field's icon.intReturns the maximum number of characters in the edit field.getText()Returns the string value of the object.booleanIndicates whether the edit field is highlighted.booleanIndicates whether the edit field is a numerical field.booleanIndicates whether the edit field is required.voidOpens the list of possible entries for the edit field.voidsetCursorPosition(int pos) Sets the position of the cursor within the edit field.voidsetFocus()Sets focus on the edit field.voidSets the encoded value of this edit field.voidSets the text value of the edit field.Methods inherited from interface com.hp.lft.sdk.EnabledProviderisEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProviderwaitUntilEnabled, waitUntilEnabled
- 
Method Details- 
getAttachedTextReturns the static text attached to the edit field.- Returns:
- the static text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isHighlightedIndicates whether the edit field is highlighted.- Returns:
- true if highlighted.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getIconNameReturns the name of the edit field's icon.- Returns:
- the name of the icon.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getMaxLengthReturns the maximum number of characters in the edit field.- Returns:
- the maximum number of characters.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isNumericalIndicates whether the edit field is a numerical field.- Returns:
- true if numerical field.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isRequiredIndicates whether the edit field is required.- Returns:
- true if required.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getTextReturns the string value of the object.- Returns:
- the text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
openPossibleEntriesOpens the list of possible entries for the edit field.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setTextSets the text value of the edit field.- Parameters:
- text- the text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setCursorPositionSets the position of the cursor within the edit field.- Parameters:
- pos- The 0-based character position.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setFocusSets focus on the edit field.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
setSecureSets the encoded value of this edit field. The SetSecure method enables you to hide passwords displayed on the screen while running or editing a test. However, it is not intended to be a secure way to protect password information.
 Generate the encoded value using the Password Encoder utility (CryptonApp.exe), available in the OpenText Functional Testing for Developers installation\bin folder.- Parameters:
- encryptedText- the encoded text to enter in this edit field.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-