This project is read-only.

UITestExtensions.Unit_SetPassword (System.Windows.Controls.PasswordBox, System.String)

Function Sets the text of a PasswordBox

Namespace:SoftHai.Testing.UITest
Assembly: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

PWB
Type:System.Windows.Controls.PasswordBox
Current PasswordBox
ptext
Type:System.String
Text 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

Last edited Jul 19, 2010 at 11:08 AM by SoftHai, version 1

Comments

No comments yet.