Class
XamlControlHelper

Definition

Namespace:ArtOfTest.WebAii.Controls.Xaml

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public static class XamlControlHelper

Inheritance: objectXamlControlHelper

Methods

CheckToggleButton(IToggleButton, bool, bool)

Declaration

cs-api-definition
public static void CheckToggleButton(IToggleButton button, bool simulateRealUser, bool toCheck)

Parameters

button

IToggleButton

simulateRealUser

bool

toCheck

bool

FindElementByName(FrameworkElement, string)

Searches from the root for an element with the specified name. This method doesn't timeout searching via FindStrategy.WhenNotVisibleReturnNull.

Declaration

cs-api-definition
public static FrameworkElement FindElementByName(FrameworkElement root, string name)

Parameters

root

FrameworkElement

The root element to start the search from.

name

string

The name of the element to search.

Returns

FrameworkElement

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

cs-api-definition
public static FrameworkElement FindElementByText(FrameworkElement root, string text)

Parameters

root

FrameworkElement

The root element to start the search from.

text

string

The element text content to search for.

Returns

FrameworkElement

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

cs-api-definition
public static FrameworkElement FindElementByType(FrameworkElement root, string type)

Parameters

root

FrameworkElement

The root element to start the search from.

type

string

The type of the element to search.

Returns

FrameworkElement

The element or null if not found.

NavigateCalendar(ICalendar, CalendarNavigationDirection, string, string)

Declaration

cs-api-definition
public static void NavigateCalendar(ICalendar calendar, CalendarNavigationDirection direction, string nextButtonName, string previousButtonName)

Parameters

calendar

ICalendar

direction

CalendarNavigationDirection

nextButtonName

string

previousButtonName

string

OpenComboBoxDropDown(IComboBox, bool)

Declaration

cs-api-definition
public static void OpenComboBoxDropDown(IComboBox combo, bool simulateRealUser)

Parameters

combo

IComboBox

simulateRealUser

bool

OpenDatePickerCalendarPopup(IDatePicker, bool)

Open the picker calendar popup.

Declaration

cs-api-definition
public static void OpenDatePickerCalendarPopup(IDatePicker picker, bool simulateRealUser)

Parameters

picker

IDatePicker

Reference to date picker object.

simulateRealUser

bool

True to find the button and click on it, false to change the state via automation property.

PressRepeatButton(FrameworkElement, int)

Declaration

cs-api-definition
public static void PressRepeatButton(FrameworkElement repeatButton, int holdTime)

Parameters

repeatButton

FrameworkElement

holdTime

int

SelectCalendarDates(ICalendar, bool, List<DateTime>, bool)

Declaration

cs-api-definition
public static void SelectCalendarDates(ICalendar calendar, bool simulateRealUser, List<DateTime> dates, bool isInDatePicker)

Parameters

calendar

ICalendar

simulateRealUser

bool

dates

List<DateTime>

isInDatePicker

bool

SelectCalendarMonth(ICalendar, int)

Declaration

cs-api-definition
public static void SelectCalendarMonth(ICalendar calendar, int month)

Parameters

calendar

ICalendar

month

int

SelectCalendarYear(ICalendar, int)

Declaration

cs-api-definition
public static void SelectCalendarYear(ICalendar calendar, int year)

Parameters

calendar

ICalendar

year

int

SetDatePickerText(IDatePicker, bool, string, int, int)

Declaration

cs-api-definition
public static void SetDatePickerText(IDatePicker picker, bool simulateRealUser, string text, int keyPressTime, int keyHoldTime)

Parameters

picker

IDatePicker

simulateRealUser

bool

text

string

keyPressTime

int

keyHoldTime

int

SetPassword(FrameworkElement, bool, string, int, int)

Declaration

cs-api-definition
public static void SetPassword(FrameworkElement xamlControl, bool simulateRealUser, string text, int keyPressTime, int keyHoldTime)

Parameters

xamlControl

FrameworkElement

simulateRealUser

bool

text

string

keyPressTime

int

keyHoldTime

int

SetSliderValue(ISlider, double)

Declaration

cs-api-definition
public static void SetSliderValue(ISlider slider, double value)

Parameters

slider

ISlider

value

double

SetText(FrameworkElement, bool, string, int, int, bool, bool)

Declaration

cs-api-definition
public static void SetText(FrameworkElement xamlControl, bool simulateRealUser, string text, int keyPressTime, int keyHoldTime, bool fireKeyEvents = false, bool clearCurrentText = true)

Parameters

xamlControl

FrameworkElement

simulateRealUser

bool

text

string

keyPressTime

int

keyHoldTime

int

fireKeyEvents

bool

clearCurrentText

bool

ZoomCalendarOut(ICalendar)

Declaration

cs-api-definition
public static void ZoomCalendarOut(ICalendar calendar)

Parameters

calendar

ICalendar