UITestExtensions.Unit_SetPassword (System.Windows.Controls.PasswordBox, System.String)
Function Sets the text of a PasswordBox
Namespace:SoftHai.Testing.UITestAssembly:SoftHai.Testing
Syntax
Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_SetPassword( _
ByVal PWB As System.Windows.Controls.PasswordBox, _
ByVal pText As System.String _
)
C#
[ExtensionAttribute()]
public void Unit_SetPassword(
this System.Windows.Controls.PasswordBox PWB,
System.String pText
)
Parameter
PWBType:
System.Windows.Controls.PasswordBoxCurrent PasswordBox
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#
PasswordBox PwB = new PasswordBox();
...
PwB.Unit_SetPassword("Password");
Visual Basic
Dim PwB as new PasswordBox()
...
PwB.Unit_SetPassword("Password")
This WikiPage was created with
Codeplex WikiEditor