Adding Visual Accessors

Here is an example of adding a Visual Accessor to a test script.

Prerequisites

The following options must be enabled:

  • Visual Accessors

  • XPath Search

  • Enable Fallback Accessors

  • Shadow DOM

See Web Designer Test Options for more information on these settings.

Capture Visual Accessor

  1. Right click anywhere in your test script.

  2. Select the browser in the drop down.

  3. Select Optimize.

  4. Right click in the action and select Edit Accessor. Scroll through the list until you see the Visual Accessor.

  5. Select the Visual Accessor, and check that it is valid.

  6. The accessor in your test script is now image.