Verify Deleted Data

PROBLEM

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.
  2.  


     

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


     

  5. Drag the DataGridItem from Shipped Orders to the Recycle Bin.
  6.  


     

  7. Click OK on the Confirm dialog.
  8. Move the Wait for ExistsNot step to the last position.
  9.  


     

  10. Execute the test.