WPF: Selecting Rows on a Grid

1 Answer 31 Views
Test Recording WPF Testing
Richard
Top achievements
Rank 2
Iron
Veteran
Iron
Richard asked on 08 Dec 2023, 02:48 PM

Is it possible to select the first X rows of a Grid as part of a test? Drag selecting on the Grid isn’t captured in the test recorder.

Thanks,
Richard

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 12 Dec 2023, 12:10 PM

Hello Richard,

If you can't record this action directly on the tested application, you can always use the advanced recording tool
To select a number of rows with dragging I suggest using the drag and drop action from the advanced recording tool.

Here is how to achieve this:

1. In recording session enable the highlighting from the compact recording toolbar.

2. Hover over the first cell from the selection of the data grid. Select the Cell from the option menu.

3. Select "Locate in DOM".

4. Got to "Elements Steps" tab -> "Actions"

5. From "Mouse Actions" drop down choose "Drag and Drop"

6. Press the "Pick" button.

7. Go back to the application and hover over the last row of the selection. Wait for the "Select Element" button to appear and click it. This will set the target element of the drop location (where the left mouse button is being released).

8. Press "Add Step" on the bottom right corner of the advanced recording tool window to add the step.

 

If you have any additional questions, don't hesitate to ask. For more detailed information on the process, you can check this article.

Regards, Alexander Progress Telerik

Virtual Classroom is the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products including Telerik Test Studio! Check it out at https://learn.telerik.com/.
Tags
Test Recording WPF Testing
Asked by
Richard
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Alexander
Telerik team
Share this question
or