C# Class UnitTestUtilities.UIUtilities

ファイルを表示 Open project: WKlingonsmith/FCS-Project

Public Methods

Method Description
ClickOnItem ( UIElement element ) : void

Clicks any given item. If you are clicking on a textbox, you should use the ClickOnTextbox method.

ClickOnItemNoWait ( UIElement element ) : void
ClickOnTextbox ( TextBox window_textbox ) : void

Clicks in a Textbox so you have focus, then use SendKeys to type into the textbox

CloseWindow ( Window wind ) : void

This closes a given window

RunAssert ( object expected, object actual ) : void

This verifies that the given expected and actual are equal-- if they aren't it throws an Assert

SelectComboboxItem ( ComboBox window_combobox, string item ) : void

Selects an item from a combobox

TypeIntoTextbox ( TextBox window_textbox, string valueToEnter ) : void

This clicks, deletes any values, and then types the given string into the textbox

TypeIntoTextboxNoWait ( TextBox window_textbox, string valueToEnter ) : void

This clicks, deletes any values, and then types the given string into the textbox without waiting to verify the value(s) typed

Method Details

ClickOnItem() public static method

Clicks any given item. If you are clicking on a textbox, you should use the ClickOnTextbox method.
public static ClickOnItem ( UIElement element ) : void
element UIElement
return void

ClickOnItemNoWait() public static method

public static ClickOnItemNoWait ( UIElement element ) : void
element UIElement
return void

ClickOnTextbox() public static method

Clicks in a Textbox so you have focus, then use SendKeys to type into the textbox
public static ClickOnTextbox ( TextBox window_textbox ) : void
window_textbox System.Windows.Controls.TextBox
return void

CloseWindow() public static method

This closes a given window
public static CloseWindow ( Window wind ) : void
wind System.Windows.Window
return void

RunAssert() public static method

This verifies that the given expected and actual are equal-- if they aren't it throws an Assert
public static RunAssert ( object expected, object actual ) : void
expected object
actual object
return void

SelectComboboxItem() public static method

Selects an item from a combobox
public static SelectComboboxItem ( ComboBox window_combobox, string item ) : void
window_combobox System.Windows.Controls.ComboBox
item string
return void

TypeIntoTextbox() public static method

This clicks, deletes any values, and then types the given string into the textbox
public static TypeIntoTextbox ( TextBox window_textbox, string valueToEnter ) : void
window_textbox System.Windows.Controls.TextBox
valueToEnter string
return void

TypeIntoTextboxNoWait() public static method

This clicks, deletes any values, and then types the given string into the textbox without waiting to verify the value(s) typed
public static TypeIntoTextboxNoWait ( TextBox window_textbox, string valueToEnter ) : void
window_textbox System.Windows.Controls.TextBox
valueToEnter string
return void