Share this page

# ajax_tabs

Note: This protocol is supported for replay only. Support for this protocol will be discontinued in future versions..

We recommend that you migrate your Ajax Click & Script scripts to another web protocol such as TruClient-Web or Web-HTTP/HTML.

For details, see Web Vuser Functions (WEB) and TruClient protocols in the VuGen Help Center (select the relevant version).

Emulates use of folder-style tabs in Atlas applications.

AJAX Click and Script Functions

    int ajax_tabs( "stepname", DESCRIPTION, "Framework=atlas", "ID=control id", ACTION, "UserAction=Select", "Tab= tab name", 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.

### Function Arguments table

Argument | Description
--- | ---
StepName | The name of the step, as it appears in the test tree. Any text can be used.
Framework | The software used to create the AJAX application. For this function, the "`Atlas"` framework is supported.
ID | The control ID.
UserAction | With ajax_tabs, always use "UserAction=Select".
Tab | The tab to select.

### General Arguments table

Argument | Description
--- | ---
DESCRIPTION | This delimiter marks the beginning of the list of attributes that identify the element on which the function operates.
ACTION | This delimiter marks the beginning of the action list. When there are no action-type arguments, this argument can be omitted, but it is not an error to specify it.
LAST | This delimiter marks the end of the argument list.

## General Information

The function ajax_tabs emulates a user selecting a tab on a web page.

## Example

This example shows a tab being selected.

Copy code

    ajax_tabs (
      "mystep",
      DESCRIPTION,
      "Framework=atlas",
      "ID=mytab",
      ACTION,
      "UserAction=Select",
      "Tab=Email",
      LAST );

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: