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