New to Telerik Test Studio? Download free 30-day trial

Verify Deleted Data

I would like to verify that an element does not exist, like after deleting a row from a data grid.

Solution

This is possible with a Wait for ExistsNot verification. Here's an example against this Telerik demo site:

1.  Drag the first DataGridItem from Pending Orders to Shipped Orders.

Drag the row

2.  Before deleting the DataGridItem, create the Wait for ExistsNot verification while it still exists.

Wait for exists not

3.  Drag the DataGridItem from Shipped Orders to the Recycle Bin.

Remove the datagriditem

4.  Click OK on the Confirm dialog.

5.  Move the Wait for ExistsNot step to the last position.

Remove the datagriditem

6.  Execute the test.

In this article