UITestExtensions.Unit_SetText (System.Windows.Controls.TextBox, System.String)
Function Sets the text of a TextBox
Namespace:SoftHai.Testing.UITestAssembly:SoftHai.Testing
Syntax
Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_SetText( _
ByVal TB As System.Windows.Controls.TextBox, _
ByVal pText As System.String _
)
C#
[ExtensionAttribute()]
public void Unit_SetText(
this System.Windows.Controls.TextBox TB,
System.String pText
)
Parameter
TBType:
System.Windows.Controls.TextBoxRecent TextBox
ptextType:
System.StringText value to be set
Remarks
Example
First, the namespace is imported, so that the extension methods are available:
C#
using SoftHai.Testing.UITest;
Visual Basic
Imports SoftHai.Testing.UITest
Subsequently, the extension method be used as follows:
C#
TextBox TB = new TextBox();
...
TB.Unit_SetText("Text to set");
Visual Basic
Dim CB as new TextBox()
...
TB.Unit_SetText("Text to set")
This WikiPage was created with
Codeplex WikiEditor