Action
This function verifies whether a tab is currently the selected one inside a tab control.
SapGui.bdh
SapGuiVerifyTabSelected( in sControlId : string, 
                         in bSelected  : boolean,
                         in nSeverity  : numberoptional := SEVERITY_ERROR ) : boolean; 
               	 | Parameter | Description | 
|---|---|
| sControlId | The unique id of the tab. | 
| bSelected | If the parameter is set to "true", the verification will succeed when the tab is selected. | 
| nSeverity |  
                           				  Optional: Severity of the error that is raised if the verification fails. Can be one of the following values: 
                               
                           				  
                           
  |  
                        			 
                     
transaction TMain
  var
    sText : string;
    sConnID : string;
  begin
    // Connecting to SAP
    sConnID := SapGuiOpenConnection( " /SAP_CODEPAGE=1100 /FULLMENU 10.5.2.132 0 /3");
    SapGuiSetActiveConnection(sConnID);
    SapGuiSetActiveSession("ses[0]");
    // SAP
    SapGuiSetActiveWindow("wnd[0]", "SAP", SAPGUI_MATCH_ExactNoCase);
    SapGuiWindowAction(SAPGUI_WND_MAXIMIZE);
    // Logon to SAP System
    // Before running a test you have to customize the password parameter!
    ThinkTime(2.0);
    SapGuiLogon("ddic", "minisap", "000", "");
    SapGuiVerifyTabSelected("/usr/tabsG_SELONETABSTRIP/tabpTAB002/", true, SEVERITY_ERROR);
  end TMain;