Click & Script Protocols - Overview

The Ajax (Click &Script) protocol records Web sessions on a user-action GUI level. VuGen creates a GUI-level script that intuitively represents actions in the Web interface. For example, VuGen generates a web_button function when you click a button to submit information, and VuGen generates a web_edit_field function when you enter text into an edit box.

Click & Script Vusers support non-HTML code such as Javascript on the client side. VuGen creates an intuitive script that emulates your actions on the web page, and executes the necessary Javascript code.

Click & Script Vusers handle most correlations automatically, reducing the time required to create the script. In most cases, you do not need to define rules for correlations or perform manual correlations after the recording.

Click & Script Vusers allow you to generate detailed Business Process Reports which summarize the script. For example, when you click a button to submit data, VuGen generates a web_button function. If the button is an image, VuGen generates a web_image_submit function. In the following example, a Vuser clicks the Login button. 

web_image_submit("Login", 
        "Snapshot=t4.inf", 
        DESCRIPTION, 
        "Alt=Login", 
        "Name=login", 
        "FrameName=navbar", 
        ACTION, 
        "ClickCoordinates=31,6", 
        LAST);}

The next section illustrates a user navigating to the Asset ExpressAdd process under the Manage Assets branch. The user navigates by clicking the text links of the desired branches, generating web_text_link functions.

web_text_link("Manage Assets_2", 
        DESCRIPTION, 
        "Text=Manage Assets", 
        "Ordinal=2", 
        "FrameName=main",
        ACTION,
        "UserAction=Click",
        LAST);
web_text_link("Use", 
        DESCRIPTION, 
        "Text=Use", 
        "FrameName=main", 
        ACTION,
        "UserAction=Click",
        LAST);
web_text_link("Asset ExpressAdd", 
        DESCRIPTION, 
        "Text=Asset ExpressAdd", 
        "FrameName=main", 
        ACTION,
        "UserAction=Click",
        LAST);

In the following example, the web_list function emulates the selection of a list item.

web_list("Year", 
        DESCRIPTION, 
        "Name=Year", 
        "FrameName=CalFrame", 
        ACTION, 
        "Select=2000", 
        LAST);

When you click on an image that is associated with an image map, VuGen generates a web_map_area function.

web_map_area("map2_2", 
        DESCRIPTION, 
        "MapName=map2", 
        "Ordinal=20", 
        "FrameName=CalFrame", 
        ACTION,
        "UserAction=Click",
        LAST);

Note: Click & Script Vusers do not support applets or VB script. If the Web site that is accessed by the Vusers contains these items, use the Web - HTTP/HTML protocol.

Back to top