Ajax click & script example script
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.
VuGen uses the control handler layer to create the effect of an operation on a GUI control. During recording, when one of the supported Ajax controls was encountered, VuGen generated a function with an ajax_xxx prefix.
In the following example, a user selected item number 1 (index=1) in an Accordion control. VuGen generated an ajax_accordion function.
web_browser("Accordion.aspx", DESCRIPTION, ACTION, "Navigate=http://labm1app08/AJAX/Accordion/.aspx", LAST); lr_think_time(5); ajax_accordion("Accordion", DESCRIPTION, "Framework=atlas", "ID=ctl00_SampleContent_MyAccordion", ACTION, "UserAction=SelectIndex", "Index=1", LAST); web_edit_field("free_text_2", "Snapshot=t18.inf", DESCRIPTION, "Type=text", "Name=free_text", ACTION, "SetValue=FILE_PATH", LAST);
Note: When you recorded an Ajax session, VuGen generated standard Click & Script functions for objects that are not one of the supported Ajax controls. In the example above, the word FILE_PATH was typed into an edit box.