Share this page

# relframeid Attribute

The relframeid attribute represents the frame id of the current HTML page relative to the requested url. relframeid is not supported in GUI level scripts.

In web scripts, a Relative frame id is specified as a dot–delimited sequence of decimal integers also known as qualifiers. You can specify a maximum of seven qualifiers, each qualifier ranging from 1 to 15. Zero is not a valid qualifier for a Relative frame id. The first qualifier is always 1, implying the first HTML page that is referenced (as a frame) by the requested url. The next qualifier denotes the index of the next requested page. The following section shows a sample hierarchy:

1. the requested url

2. the first HTML page referenced as a frame by the requested url

3. the second HTML page referenced as a frame by the requested url

4. the first HTML page referenced by the 1.2 page.

The following guidelines apply to Relative frame ids:

- Relative frame ids are ordered. The lowest possible Relative frame id of an HTML page is 1. This is significant when there is an ordinal match on multiple pages. VuGen uses the lowest id. (see guidelines below)
  The ids are seven values separated with a point. Do not pass leading zeros, but do keep in mind that they are implicit and affect the order.

  Argument | Implicit Value Lowest to Highest
  1 | 0.0.0.0.0.0.1
  1.1 | 0.0.0.0.0.1.1
  1.2 | 0.0.0.0.0.1.2
  1.1.1 | 0.0.0.0.1.1.1

- To see all Relative frame ids in the log, select Extended log – Advanced trace in the Log Run–Time settings.

- All non–HTML pages (resources) have a Relative frame id of zero. Therefore, they cannot be explicitly referred to by a Relative frame id argument. If relframeid is not specified, or relframeid=ALL, VuGen searches all pages (including non–HTML pages) for the requested string. If the page is non–HTML, VuGen issues a warning indicating that the string was found in a resource rather than in an HTML page. If relframeid is specified, VuGen does not search non–HTML pages.

- Specific Relative frame id (not relframeid=ALL) and ordinal: When you specify a Relative frame id or if the frame id is retrieved by default, occurrences (ordinals) are counted within the headers and/or body of a single page, not across pages. The only exception is that a redirection of a page is considered as a continuation of that page. A redirected–to page has the same Relative frame id as its redirected–from page.

- Specific ordinal (not Ord=ALL): When VuGen finds a match for the specified ordinal (occurrence) on more than one page, it saves the value from the page with the lowest Relative frame id. If ordinal matches are found in one or more non–HTML pages, the value saved is the value from the last match it encountered. This value may differ between runs, depending on the order in which the data arrived from the server.

- Ord=ALL: When you specify Ord=ALL for parameter named `<param_name>`, all the matches within the specified or defaulted Relative frame id (including non–HTML pages) are saved into parameters named `<param_name>_<n>`. `<param_name>_1` contains the first match, `<param_name>_2` contains the second match,and so on.
  `<param_name>_count` is set to a null–terminated string representing the total number of matches.

When no match is found, `<``param_name``>_count` is 0.

In the following example, web.regSaveParam saves the first occurrence ("HTML") into "Tags_1", the second (e.g., "HEAD") into Tags_2, and so forth.

web.regSaveParam("Tags", "lb=<", "rb=>", "Ord=ALL", LAST)

Note: It is not recommended to refer directly to a specific occurrence (e.g., "Tags_9" or "Tags_21"). The order of occurrences may not be constant between runs, so that referring directly to a specific occurrence may yield a different value for each run. There may also be other ambiguous cases. Instead of referring to a specific occurrence, loop through the returned values to locate the value in which you are interested.

Use Ord=ALL to search all saved values, not specific occurrences.

- relframeid=ALL: Instructs VuGen to scan all frames (including non–HTML pages). When you explicitly set relframeid=ALL, you cannot specify an ordinal; the setting is automatically "Ord=ALL" . This is because occurrences (ordinals) are counted in the order in which they are encountered. Since frames and resources are downloaded in an unpredictable order, the order of the occurrence is unpredictable and may be different from run to run.

## Defaults

If the relframeid attribute is not specified, the default is relframeid=ALL.

If the ord attribute is not specified and the relframeid is explicitly set to ALL (not omitted), then ord is ALL. In all other cases, the default value of ord is 1.

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: