Table of Contents

Interface IEditor

A Java edit box.

Inherited Members
IUiObjectBase.FireEvent(IEventInfo)
IUiObjectBase.SendKeys(string, KeyModifier)
IUiObjectBase.SendKeys(string)
IUiObjectBase.CreateObject(string, params object[])
IUiObjectBase.CreateObject(string)
IUiObjectBase.GetStatics(string)
IUiObjectBase.GetObjectProperty<TValue>(string)
IUiObjectBase.IsFocused
IUiObjectBase.AttachedText
IUiObjectBase.BackgroundColor
IUiObjectBase.ForegroundColor
IUiObjectBase.ObjectName
IUiObjectBase.Label
IUiObjectBase.Path
IUiObjectBase.TagName
IUiObjectBase.NativeClass
IClickable.Click(MouseButton)
IClickable.Click(ClickArgs)
IDoubleClickable.DoubleClick(MouseButton)
IDoubleClickable.DoubleClick(ClickArgs)
ILocationInfoProvider.Location
ILocationInfoProvider.AbsoluteLocation
ILocationInfoProvider.Size
ISupportsNativeObject.NativeObject
IEnabledProvider.IsEnabled
IVisibleProvider.IsVisible
ITestObject.GetDescription()
ITestObject.SetDescription(IDescription)
ITestObject.FindChildren<TChild>(IDescription)
ITestObject.Exists()
ITestObject.Exists(uint)
ITestObject.GetSnapshot()
ITestObject.Highlight()
ITestObject.HighlightMatches<TChild>(IDescription)
ITestObject.GetTextLocations(string)
ITestObject.GetTextLocations(string, Rectangle)
ITestObject.GetVisibleText()
ITestObject.GetVisibleText(Rectangle)
ITestObject.VerifyImageExists(Image, byte)
ITestObject.VerifyImageMatch(Image, byte, byte)
ITestObject.VerifyImageMatch(Image, ImageMaskArea, byte, byte)
ITestObject.CallFTMethod(string, params object[])
ITestObject.CallFTMethod<TResult>(string, params object[])
ITestObject.Parent
ITestObject.DisplayName
ITestObjectDescriber.Describe<TChild>(IDescription)
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()

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

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

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

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

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

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.

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)