Interface
ITextBox

Represents interface for the Xaml TextBox control wrappers.

Definition

Namespace:ArtOfTest.WebAii.Controls.Xaml

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public interface ITextBox : IFrameworkElement, ITargetElement

Derived Classes: DatePickerTextBoxTextBoxDatePickerTextBoxTextBoxExtendedTextBoxRadPasswordBoxPickerTextBoxRadWatermarkTextBoxExtendedTextBoxPickerTextBoxRadWatermarkTextBox

Inherited Members IFrameworkElement.CastAs<T>()IFrameworkElement.Parent<T>()IFrameworkElement.SetProxy(bool)IFrameworkElement.SetUid(string)IFrameworkElement.SetFindInfo(VisualFindInfo)IFrameworkElement.SetXamlTag(string)IFrameworkElement.AssignReference(AutomationReference)IFrameworkElement.SetFocus()IFrameworkElement.GetAutomationProperty(string)IFrameworkElement.GetProperty<T>(string)IFrameworkElement.GetPropertyTypeSafe(string)IFrameworkElement.SetProperty(string, object)IFrameworkElement.ScrollToVisible()IFrameworkElement.UserIFrameworkElement.FindIFrameworkElement.WaitIFrameworkElement.NameIFrameworkElement.AbsoluteSiblingTagIndexIFrameworkElement.ActualWidthIFrameworkElement.ActualHeightIFrameworkElement.ToolTipTextIFrameworkElement.TextBlockContentIFrameworkElement.TextLiteralContentIFrameworkElement.ComputedVisibilityIFrameworkElement.UidITargetElement.Match(IFindExpression)ITargetElement.SetDepth(int)ITargetElement.AddChildNode(ITargetElement)ITargetElement.SetClosingTag(ITargetElement)ITargetElement.GetChildren()ITargetElement.GetParent()ITargetElement.GetHostParent()ITargetElement.SetParent(ITargetElement)ITargetElement.Refresh()ITargetElement.GetUniqueHashCode()ITargetElement.GetRectangle()ITargetElement.Capture()ITargetElement.CaptureImage()ITargetElement.GetStringPresentation()ITargetElement.TechnologyTypeITargetElement.DepthITargetElement.IsTestRegionITargetElement.ParsedElementITargetElement.Host

Properties

Text

Get/set the text of the TextBox via automation property.

Declaration

cs-api-definition
string Text { get; set; }

Property Value

string

Methods

SetText(bool, string, int, int, bool, bool)

Sets or types a new text into the TextBox.

Declaration

cs-api-definition
void SetText(bool simulateRealUser, string text, int keyPressTime, int keyHoldTime, bool fireKeyEvents, bool clearCurrentText)

Parameters

simulateRealUser

bool

If true, simulates typing, otherwise simply replaces the text.

text

string

The text to set/type.

keyPressTime

int

The delay between each press

keyHoldTime

int

The delay between pressing and releasing each key

fireKeyEvents

bool

If true fires KeyDown and KeyUp events during simulated typing. Not compatible with Unicode text input.

clearCurrentText

bool

If true clears text before simulated typing.