Create Advanced Test Verifications

An advanced verification allows you to interactively build verification rules and validate them against a live web document or WPF application.

In order to create custom verification you need to highlight the element and choose Build Step... from the menu:

Build Step

In the Recorder select Verifications node.

Verifications

Start by selecting a type of Available Verifications:

  • IsVisible
  • Content
  • Style
  • IsEnabled
  • Image

Available verifications

When crafting verifications, content is dynamically built against the currently selected element. As selections are made, default values are populated according to values the element contains. For example, choose Content as the verification type and three menu options appear.

Content

Click on the down arrow next to each option to see a list of possible values.

Inner Text Exact

Once finished building the verification(s), click Add Step to add it as a step to the current test.

Add Step

The newly created verification appears in the test:

Test Steps

We recommend against using the Content Markup validation types. They are fragile in the face of minor page changes, and different browsers may reorder the element attributes making them unreliable. For more information please see our Automated Testing blog entry on Understanding Validation Content Element Types.