UIAutomation in WPF DataPager (SfDataPager)

SfDataPager supports the following UIAutomation,

  • Coded UI
  • Quick Test Professional

Coded UI

SfDataPager supports CodedUITest automation that helps you to create an automation test with SfDataPager elements and record the sequence of actions.

There are three levels of support in CodedUITest for SfDataPager

C:/Users/giftline.jebamani/Desktop/a.png

Levels Description
Level – 1 Record and Detects the UI Elements when the actions in the Control is performed.
Level – 2 Provides custom properties for UI elements when you drag the Cross hair to any UI element.
Level – 3 CodedUITest Builder generates code from the recorded session and you need to implement custom class to access custom properties, so the generated code is simplified.

To know more about CodedUITest, refer to the link.

The following screenshot displays the SfDataPager properties when you drag the crosshair to the SfDataPager

C:/Users/giftline.jebamani/Desktop/a.png

The following table describes the properties of SfDataPager.

UI Element Properties
SfDataPager * AccentBackground* AccentForeground* AutoEllipsisMode* AutoEllipsisText* DisplayMode* EnableGridPaging* NumericButtonCount* Orientation* PageCount* PageSize* UseOnDemandPaging

Quick Test Professional

SfDataPager supports QTP test. You can record the actions performed in the control by the corresponding method name
with Syncfusion namespace. To know more about QTP test, refer to the link

The following screenshot displays the QTP Test for SfDataPager

C:/Users/ilanchezhiyan/Pictures/CodedUIBlogImages/DataPager&MultiColumn/QTPSfDataPager.png

The following table describe the methods of SfDataPager.

Method Description Parameters Return Type
void SetCurrentPage(int pageIndex To set the current page in SfDataPager Int pageIndex Void