Previous Topic: Parse HTML Result for DevTest TagsNext Topic: Parse HTML into List of Attributes


Choose Random HTML Attribute

The Choose Random HTML Attribute filter lets you store the text of a random selection from a set in a property. The attribute can occur anywhere in the result, including scripting code.

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.

Outer Tag

The outer element that contains the list from which to pick. For example, to select a drop-down list, enter the text "select".

Tag Count

The occurrence of the outer tag. For example, to select the second drop-down list, enter the text "2".

Inner Tag

The tag to pick the attribute from, randomly. To pick a random item in the drop-down list, enter the text "option".

Filter Attribute

An optional field to specify attribute names to exclude from the pick list.

Filter Value

An optional field to specify attribute values to exclude from the pick list.

Attribute

The attribute from which to retrieve text. If this field is blank, the child text of the inner tag is returned.

Property Key

The property to store the text of the attribute.

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.