Interface IEditField
A .NET WPF edit box.
Inherited Members
Namespace: HP.LFT.SDK.WPF
Assembly: HP.LFT.SDK.dll
Syntax
public interface IEditField : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITestObject, ITestObjectDescriber
Properties
IsReadOnly
Indicates whether this text editing object is read-only to a user interacting with this object.
Declaration
bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
The name of this object.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
ParentText
The text associated with the parent object of this object.
Declaration
string ParentText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Select(int, int)
Selects text in a single line edit box.
Declaration
void Select(int fromCharPos, int toCharPos)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fromCharPos | Character position from which selection starts, inclusive. |
| int | toCharPos | Character position at which selection ends, inclusive. |
Select(int, int, int, int)
Selects text in this multi-line edit box.
Declaration
void Select(int fromLine, int fromCharPos, int toLine, int toCharPos)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fromLine | The line at which the selection starts, inclusive. |
| int | fromCharPos | The character position at which the selection starts, inclusive. |
| int | toLine | The line at which the selection ends, inclusive. |
| int | toCharPos | The character position at which the selection ends, inclusive. |
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 associated with this object.
Declaration
void SetText(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text to be entered in this edit field. |