This function verifies whether a check box in a table cell is checked.
SapGui.bdh
SapGuiVerifyTableRowSelected( in sControlId : string, in nRow : number, in nOptions : number optional, in nSeverity : number optional := SEVERITY_ERROR ) : boolean;
Parameter | Description |
---|---|
sControlId | The unique id of the table. |
nRow | The row to be verified. |
nOptions | This parameter specifies the type of check to be performed. Available options are:
|
nSeverity |
Optional: Severity of the error that is raised if the verification fails. Can be one of the following values:
|
transaction TMain var sConnID : string; begin sConnID := SapGuiOpenConnection( " /SAP_CODEPAGE=1100 /FULLMENU 10.5.2.132 0 /3"); SapGuiSetActiveConnection(sConnID); SapGuiSetActiveSession("ses[0]"); SapGuiSetActiveWindow("wnd[0]", "SAP", SAPGUI_MATCH_ExactNoCase); SapGuiWindowAction(SAPGUI_WND_MAXIMIZE); ThinkTime(4.3); SapGuiLogon("ddic", "*******", "000", ""); SapGuiIgnoreError(SAPENGINE_STATUSBAR_CHANGED, SEVERITY_SUCCESS); ThinkTime(2.4); SapGuiSetActiveWindow("wnd[0]", "SAP Easy Access", SAPGUI_MATCH_ExactNoCase); SapGuiTreeExpandNode("usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell", "Office", "0000000003", "Expand\\Office"); // NodeName: Telephone Integration // NodePath: 2\1\2 SapGuiTreeExpandNode("usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell", "Telephone Integration", "0000000005", "Expand\\Telephone Integration"); // NodeName: Extended Settings // NodePath: 2\1\2\2 SapGuiTreeSelectNode("usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell", "Extended Settings", "0000000007", false, "SelNode\\Extended Settings"); // NodeName: Favorites // NodePath: 1 SapGuiSelectTopNode("usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell", "Favorites", "Favo", "TopNode\\Favorites"); SapGuiTreeDblClickNode( "usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell", "Extended Settings", "0000000007", "DblClNode\\Extended Settings"); ThinkTime(2.3); SapGuiSetActiveWindow("wnd[0]", "SAPphone: Administration", SAPGUI_MATCH_ExactNoCase); // Simulate inbound call SapGuiPressButton("usr/btn%_AUTOTEXT005", " Simulate inbound call"); // Daten des Anrufs eingeben ThinkTime(8.5); SapGuiSetActiveWindow("wnd[1]", "Daten des Anrufs eingeben", SAPGUI_MATCH_ExactNoCase); SapGuiTableSetText("usr/tblSAPLPHOAD102_ADDITIONAL", 0, 0, "asdf"); SapGuiTableSetFocusCell("usr/tblSAPLPHOAD102_ADDITIONAL", 0, 0, "asdf"); SapGuiVerifyTableRowSelected("usr/tblSAPLPHOAD102_ADDITIONAL", 0, SAPGUI_VERIFY_EQUAL, SEVERITY_ERROR); end TMain;