UIAutomation in WPF DataPager (SfDataPager)
5 May 20211 minute to read
SfDataPager supports the following UIAutomation,
- Coded UI
- Quick Test Professional
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
|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
The following table describes the properties of SfDataPager.
|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
The following table describe the methods of SfDataPager.
|void SetCurrentPage(int pageIndex||To set the current page in SfDataPager||Int pageIndex||Void|