Ajax click & script miscellaneous tips
Caution: This protocol is supported for replay only. Support for this protocol will be discontinued in future versions.
We recommend that you migrate your existing Ajax click & script scripts to another web protocol such as TruClient - Web or Web - HTTP/HTML.
For details on these web protocols, see Web - HTTP/HTML protocol or go to the TruClient Help Center (select the relevant version).
The following additional tips may help you in troubleshooting problems that you experience with click & script Vuser scripts.
Note: Some of the items below apply to specific click & script protocols only.

Search for warnings or alerts in the Output pane.

Verify the response of the previous step is correct using web_reg_find. For more information, see the Function Reference.

For problematic steps or those using Java applets, use Alternative Navigation to replace the web step with an HTTP level step. Note that the HTTP level steps may require manual correlations. To perform Alternative Navigation, select a step in the Step Navigator, or the text in Script View, and select Replace with alternative navigation from the right-click menu.

If you are using the Kerberos Protocol for authentication, you must customize VuGen to properly convene authorization sessions. Advanced users can attempt to perform this customization themselves.
In order for the Kerberos Protocol to work properly, create a krb5.ini file and put it in an available folder. Save the full path name of krb5.ini into the KRB5_CONFIG environment variable.
The krb5.ini file should contain detailed information about each domain (KDS and AS addresses) and trust chains.
For more information, contact Software Support.

This section lists general notes about the web functions.
Regular expressions
You can specify a regular expression for most object descriptions, by preceding the text with "/RE" before the equals sign. For example:
web_text_link("Manage Assets", DESCRIPTION, "Text/RE=(Manage Assets)|(Configure Assets)", ACTION, "UserAction=Click", LAST);
See the Function Reference for more details.
Ordinals
The Ordinal attribute is a one-based index to distinguish between multiple occurrences of objects with identical descriptions. In the following example, the two recorded web_text_link functions have identical arguments, except for the ordinal. The ordinal value of 2, indicates the second occurrence.
web_text_link("Manage Assets", DESCRIPTION, "Text=Manage Assets", "FrameName=main", ACTION, "UserAction=Click", LAST); web_text_link("Manage Assets_2", DESCRIPTION, "Text=Manage Assets", "Ordinal=2", "FrameName=main", ACTION, "UserAction=Click", LAST);
Empty strings
There is a difference between not specifying an argument and specifying it as an empty string. When you do not specify an argument, VuGen uses the default value or ignores it. When you list an argument, but assign it an empty string as a value, VuGen attempts to find a match with an empty string or no string at all. For example, omitting the id argument instructs VuGen to ignore the id property of the HTML element. Specifying "ID=" searches for HTML elements with no id property or with an empty ID.
web_text_link("Manage Assets_2", DESCRIPTION, "Text=Manage Assets", "Id=", "FrameName=main", ACTION, "UserAction=Click", LAST);