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.int
Returns the maximum number of characters in the edit field.getText()
Returns the string value of the object.boolean
Indicates whether the edit field is highlighted.boolean
Indicates whether the edit field is a numerical field.boolean
Indicates whether the edit field is required.void
Opens the list of possible entries for the edit field.void
setCursorPosition
(int pos) Sets the position of the cursor within the edit field.void
setFocus()
Sets focus on the edit field.void
Sets the encoded value of this edit field.void
Sets the text value of the edit field.Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabled
Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSize
Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObject
Methods 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, waitUntilExists
Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
Methods 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
-