Package com.hp.lft.sdk.java
Interface Editor
- All Superinterfaces:
Clickable
,DoubleClickable
,EnabledProvider
,LocationInfoProvider
,SupportsNativeObject
,TestObject
,TestObjectDescriber
,UiObjectBase
,VisibleProvider
,WaitUntilEnabledProvider
,WaitUntilVisibleProvider
A Java edit box.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activates the edit box.void
Clicks the specified link in the edit box.void
delete
(int fromLine, int fromCharPos, int toLine, int toCharPos) Deletes the specified text.getText()
Returns the object's text.void
Inserts text into the specified location in the edit box.boolean
Indicates whether the object is read only.void
Replaces text.void
select
(int fromLine, int fromCharPos, int toLine, int toCharPos) Selects text in the edit box.void
setCursorPosition
(int line, int charPos) Places the cursor at the specified location in the edit box.void
setFocus()
Sets the focus on the edit box.void
Sets the encoded value of this edit box.void
Sets the text of the edit box.Methods inherited from interface com.hp.lft.sdk.DoubleClickable
doubleClick, doubleClick, doubleClick
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.java.UiObjectBase
createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeys
Methods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisible
Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
-
Method Details
-
activate
Activates the edit box.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
clickLink
Clicks the specified link in the edit box.- Parameters:
linkName
- the name of the link to click.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
delete
Deletes the specified text. All positions are 0-based.- Parameters:
fromLine
- the line in which the deletion starts.fromCharPos
- the character position at which the deletion starts in the first line, inclusive.toLine
- the line in which the deletion ends.toCharPos
- the character position at which the deletion ends in the last line, inclusive.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
insert
Inserts text into the specified location in the edit box. All positions are 0-based.- Parameters:
text
- the string to insert.line
- the line in which to insert the text.charPos
- the character position at which to insert the text.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
replace
void replace(String text, int fromLine, int fromCharPos, int toLine, int toCharPos) throws GeneralLeanFtException Replaces text.- Parameters:
text
- the text that replaces the existing text.fromLine
- the line in which the replacement starts.fromCharPos
- the character position at which the replacement starts in the first line, inclusive.toLine
- the line in which the replacement ends.toCharPos
- the character position at which the replacement ends in the last line, inclusive.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setText
Sets the text of the edit box.- Parameters:
text
- the text.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setFocus
Sets the focus on the edit box.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setSecure
Sets the encoded value of this edit box.
The SetSecure method enables you to hide passwords displayed on the screen while running or editing a test. This method is not a secure way to protect password information.
Generate the encoded value using the Password Encoder utility (CryptonApp.exe), available from the OpenText Functional Testing for Developers menu in your IDE, or from the OpenText Functional Testing for Developers installation\bin folder.- Parameters:
encryptedText
- the encoded text.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
select
Selects text in the edit box. All positions are 0-based.- Parameters:
fromLine
- the line in which the selection starts.fromCharPos
- the character position at which the selection starts in the first line, inclusive.toLine
- the line in which the selection ends.toCharPos
- the character position at which the selection ends in the last line, inclusive.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isReadOnly
Indicates whether the object is read only.- Returns:
- true if the object is read only.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getText
Returns the object's text.- Returns:
- the text.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
setCursorPosition
Places the cursor at the specified location in the edit box. All positions are 0-based.- Parameters:
line
- the line in which the cursor is placed.charPos
- the character position at which the cursor is placed.- Throws:
GeneralLeanFtException
- if error occurs during execution
-