The Parse HTML Result for the Value of a Specific Tag or Attribute Value and Parse It filter combines the following filters:
This filter is designed to find a specific attribute in a web page, and then further parse that attribute. If the attribute is a URL, and not only a name-value pair, there is a function for handling that information.
In this example, the filter finds the "href" attribute for the seventh anchor tag, which is a URL. The filter takes the "cmd" parameter and stores that value in the cmdlistusers_KEY.
Complete the following fields:
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.
The name of the HTML tag. For an anchor tag, enter "a".
The occurrence of the tag from the top of response. For the seventh anchor tag, enter "7".
The name of the attribute to filter. For the href attribute, enter "href".
Select the check box if the attribute value is a URL.
The name of the argument to parse for its value; in this example, "cmd".
The property in which to store the value.
In this example, "cmdlistusers_KEY".
When selected, property value is URLEncoded.
The value to use if the attribute value is not found.
Displays the property and values that result from running the filter.
To run and execute the filter, click Run Filter. The results appear in the Filter Run Results section.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|