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 Summary
Modifier 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.EnabledProvider
isEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, 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.TestObjectDescriber
describeMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
-
Method Details
-
getAttachedText
Returns the static text attached to the edit field.- Returns:
- the static text.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
isHighlighted
Indicates whether the edit field is highlighted.- Returns:
- true if highlighted.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getIconName
Returns the name of the edit field's icon.- Returns:
- the name of the icon.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getMaxLength
Returns the maximum number of characters in the edit field.- Returns:
- the maximum number of characters.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
isNumerical
Indicates whether the edit field is a numerical field.- Returns:
- true if numerical field.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
isRequired
Indicates whether the edit field is required.- Returns:
- true if required.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getText
Returns the string value of the object.- Returns:
- the text.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
openPossibleEntries
Opens the list of possible entries for the edit field.- Throws:
GeneralLeanFtException- if error occurs during execution
-
setText
Sets the text value of the edit field.- Parameters:
text- the text.- Throws:
GeneralLeanFtException- if error occurs during execution
-
setCursorPosition
Sets the position of the cursor within the edit field.- Parameters:
pos- The 0-based character position.- Throws:
GeneralLeanFtException- if error occurs during execution
-
setFocus
Sets focus on the edit field.- Throws:
GeneralLeanFtException- if error occurs during execution
-
setSecure
Sets 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
-