AJAX Click and Script Functions > Alphabetical List of Functions > ajax_accordion

Support for the Click & Script protocols will be discontinued in an upcoming version.

ajax_accordion

Emulates a user expanding or collapsing a menu.

Example: ajax_accordion Alphabetical Listing
int ajax_accordion( "stepname", DESCRIPTION, "Framework=framework name", "ID=control_id", ACTION, "UserAction=SelectIndex", "Index=accordion_index", LAST );

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure. Note that LR_PASS and LR_FAIL generally indicate whether the function call completed without an exception, and not that the test step succeeded.

All input string arguments (char type) except the step name can be parameterized using standard parameterization.

General Information

The ajax_accordion function emulates a user expanding a menu on a web page. Any other menu that is expanded when ajax_accordion is called, is collapsed. The actual collapsing or expanding on the page itself is done by pressing the menu's title.