ClassXamlControlHelper
Definition
Namespace:ArtOfTest.WebAii.Controls.Xaml
Assembly:ArtOfTest.WebAii.dll
Syntax:
public static class XamlControlHelper
Inheritance: objectXamlControlHelper
Methods
CheckToggleButton(IToggleButton, bool, bool)
Declaration
public static void CheckToggleButton(IToggleButton button, bool simulateRealUser, bool toCheck)
Parameters
button
simulateRealUser
toCheck
FindElementByName(FrameworkElement, string)
Searches from the root for an element with the specified name. This method doesn't timeout searching via FindStrategy.WhenNotVisibleReturnNull.
Declaration
public static FrameworkElement FindElementByName(FrameworkElement root, string name)
Parameters
root
The root element to start the search from.
name
The name of the element to search.
Returns
The element or null if not found.
FindElementByText(FrameworkElement, string)
Searches from the root for an element with the specified text. This method doesn't timeout searching via FindStrategy.WhenNotVisibleReturnNull.
Declaration
public static FrameworkElement FindElementByText(FrameworkElement root, string text)
Parameters
root
The root element to start the search from.
text
The element text content to search for.
Returns
The element or null if not found.
FindElementByType(FrameworkElement, string)
Searches from the root for an element with the specified type. This method doesn't timeout searching via FindStrategy.WhenNotVisibleReturnNull.
Declaration
public static FrameworkElement FindElementByType(FrameworkElement root, string type)
Parameters
root
The root element to start the search from.
type
The type of the element to search.
Returns
The element or null if not found.
NavigateCalendar(ICalendar, CalendarNavigationDirection, string, string)
Declaration
public static void NavigateCalendar(ICalendar calendar, CalendarNavigationDirection direction, string nextButtonName, string previousButtonName)
Parameters
calendar
direction
nextButtonName
previousButtonName
OpenDatePickerCalendarPopup(IDatePicker, bool)
Open the picker calendar popup.
Declaration
public static void OpenDatePickerCalendarPopup(IDatePicker picker, bool simulateRealUser)
Parameters
picker
Reference to date picker object.
simulateRealUser
True to find the button and click on it, false to change the state via automation property.
PressRepeatButton(FrameworkElement, int)
Declaration
public static void PressRepeatButton(FrameworkElement repeatButton, int holdTime)
Parameters
repeatButton
holdTime
SetDatePickerText(IDatePicker, bool, string, int, int)
Declaration
public static void SetDatePickerText(IDatePicker picker, bool simulateRealUser, string text, int keyPressTime, int keyHoldTime)
Parameters
picker
simulateRealUser
text
keyPressTime
keyHoldTime
SetPassword(FrameworkElement, bool, string, int, int)
Declaration
public static void SetPassword(FrameworkElement xamlControl, bool simulateRealUser, string text, int keyPressTime, int keyHoldTime)
Parameters
xamlControl
simulateRealUser
text
keyPressTime
keyHoldTime
SetText(FrameworkElement, bool, string, int, int, bool, bool)
Declaration
public static void SetText(FrameworkElement xamlControl, bool simulateRealUser, string text, int keyPressTime, int keyHoldTime, bool fireKeyEvents = false, bool clearCurrentText = true)
Parameters
xamlControl
simulateRealUser
text
keyPressTime
keyHoldTime
fireKeyEvents
clearCurrentText
ZoomCalendarOut(ICalendar)
Declaration
public static void ZoomCalendarOut(ICalendar calendar)
Parameters
calendar