Previous Topic: Parse Web Page for PropertiesNext Topic: Parse HTML Result for Specific Value and Parse It


Parse HTML/XML Result for the Value of a Specific Tag or Attribute

You can create this filter either manually from the filter list or by using the embedded filter commands on a result set response.

To create the filter manually:

Complete the following fields:

Filter in

The name of the property to consider as the last response for the step. If the property is not in the pull-down menu, you can enter it. The property must exist.

Tag

The name of the HTML tag. For an image tag, enter "IMG".

Tag Count

The occurrence of the tag from the top of response. For the first image tag, enter "1".

Attribute

The name of the attribute to filter. For the source attribute, enter "src".

Property

The property in which to store the value.

Default (if not found)

The value to use if the attribute value is not found.

URLEncode

When selected, property value is URLEncoded.

Filter Run Results

Displays the property and values that result from running the filter.

Run Filter

To run and execute the filter, click Run Filter. The results appear in the Filter Run Results section.

To create the filter from the HTTP/HTML request step response page:

  1. Display the step response that contains the HTML response.

    Filter: Create the filter from the HTTP/HTML request step response page

  2. From the DOM Tree view, select the attribute whose value you want to store in a property.
  3. When it is highlighted, select Parse Value Filter.
  4. Enter the property name in the window.

    Filter: HTML/XML Filter Info dialog to enter Property Key

    You can also add assertions here.