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