Interface IEditor
A Java edit box.
Inherited Members
Namespace: HP.LFT.SDK.Java
Assembly: HP.LFT.SDK.dll
Syntax
public interface IEditor : IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
Properties
IsReadOnly
Indicates whether the object is read only.
Declaration
bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Text
The text in the editor.
Declaration
string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Activate()
Activates the edit box.
Declaration
void Activate()
ClickLink(string)
Clicks the specified link in the edit box.
Declaration
void ClickLink(string linkName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | linkName | The name of the link to click. |
Delete(int, int, int, int)
Deletes the specified text.
Declaration
void Delete(int fromLine, int fromCharPos, int toLine, int toCharPos)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fromLine | The line in which the deletion starts. |
| int | fromCharPos | The character position at which the deletion starts in the first line, inclusive. |
| int | toLine | The line in which the deletion ends. |
| int | toCharPos | The character position at which the deletion ends in the last line, inclusive. |
Insert(string, int, int)
Inserts a text string into the specified location in the edit box.
Declaration
void Insert(string text, int line, int charPos)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text string to insert. |
| int | line | The line in which to insert the text. |
| int | charPos | The character position at which to insert the text. |
Replace(string, int, int, int, int)
Replaces text.
Declaration
void Replace(string text, int fromLine, int fromCharPos, int toLine, int toCharPos)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text that replaces the existing text. |
| int | fromLine | The line in which the replacement starts. |
| int | fromCharPos | The character position at which the replacement starts in the first line, inclusive. |
| int | toLine | The line in which the replacement ends. |
| int | toCharPos | The character position at which the replacement ends in the last line, inclusive. |
Select(int, int, int, int)
Selects text in the edit box.
Declaration
void Select(int fromLine, int fromCharPos, int toLine, int toCharPos)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fromLine | The line in which the selection starts. |
| int | fromCharPos | The character position at which the selection starts in the first line, inclusive. |
| int | toLine | The line in which the selection ends. |
| int | toCharPos | The character position at which the selection ends in the last line, inclusive. |
SetCursorPosition(int, int)
Places the cursor at the specified position in the edit box.
Declaration
void SetCursorPosition(int line, int charPos)
Parameters
| Type | Name | Description |
|---|---|---|
| int | line | The line in which the cursor is placed. |
| int | charPos | The character position at which the cursor is placed. |
SetFocus()
Sets the focus on the edit box.
Declaration
void SetFocus()
SetSecure(string)
Sets the encoded value of this edit box.
Declaration
void SetSecure(string encodedText)
Parameters
| Type | Name | Description |
|---|---|---|
| string | encodedText | The 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 of the edit box.
Declaration
void SetText(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text. |