SuppressFrameName SuppressLinkName SuppressFormName SuppressCustomUrlName

Functions like WebPageLink, WebPageSubmit and WebPageSetActionUrl use a name (of a link, form or parsed URL resp.), a frame name, and an ordinal number to reference a link, form, or parsed URL.

In cases where for example a link or form name changes dynamically, it is common practice to do the so-called "name to number customization", which means one does not specify the name (of the link or form), but instead specifies the overall ordinal number within the page or within the frame.

These actions can be used to let this customization be done already by the recorder.

Assume a shop application which uses form names which are built by adding the numeric session ID to the string cart_.

This rule will not record the form name within the WebPageSubmit calls, but will record NULL instead, with an ordinal number which references the form in the entire page.

<HttpScriptingRule>
  <Name>Suppress XML to form conversion</Name>
  <Active>true</Active>
  <Action>SuppressFormName</Action>
  <Conditions>
    <RegExpr>
      <ApplyTo>FormName</ApplyTo>
      <Data>cart_[0-9]*</Data>
      <ExpectMatch>Complete</ExpectMatch>
    </RegExpr>
  </Conditions>
</HttpScriptingRule>