Table of Contents

Interface IEditor

Namespace
HP.LFT.SDK.Java
Assembly
HP.LFT.SDK.dll

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

bool

Text

The text in the editor.

string Text { get; }

Property Value

string

Methods

Activate()

Activates the edit box.

void Activate()

Clicks the specified link in the edit box.

void ClickLink(string linkName)

Parameters

linkName string

The name of the link to click.

Delete(int, int, int, int)

Deletes the specified text. All positions are 0-based.

void Delete(int fromLine, int fromCharPos, int toLine, int toCharPos)

Parameters

fromLine int

The line in which the deletion starts.

fromCharPos int

The character position at which the deletion starts in the first line, inclusive.

toLine int

The line in which the deletion ends.

toCharPos int

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. All positions are 0-based.

void Insert(string text, int line, int charPos)

Parameters

text string

The text string to insert.

line int

The line in which to insert the text.

charPos int

The character position at which to insert the text.

Replace(string, int, int, int, int)

Replaces text. All positions are 0-based.

void Replace(string text, int fromLine, int fromCharPos, int toLine, int toCharPos)

Parameters

text string

The text that replaces the existing text.

fromLine int

The line in which the replacement starts.

fromCharPos int

The character position at which the replacement starts in the first line, inclusive.

toLine int

The line in which the replacement ends.

toCharPos int

The character position at which the replacement ends in the last line, inclusive.

Select(int, int, int, int)

Selects text in the edit box. All positions are 0-based.

void Select(int fromLine, int fromCharPos, int toLine, int toCharPos)

Parameters

fromLine int

The line in which the selection starts.

fromCharPos int

The character position at which the selection starts in the first line, inclusive.

toLine int

The line in which the selection ends.

toCharPos int

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. All positions are 0-based.

void SetCursorPosition(int line, int charPos)

Parameters

line int

The line in which the cursor is placed.

charPos int

The 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

encodedText string

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.

void SetText(string text)

Parameters

text string

The text.