Open BrindhaBCS opened 11 months ago
@BrindhaBCS I recommend you take a look at RoboSAPiens. With this library you can easily achieve what you want:
Select Table Row ST
Press Key Combination PageDown
Double-Click Tree Element Business Communication Administration/Settings
Hi Frank van der Kuur,
We have been using the SAP GUI library for automating the SAP scripts using Robot Framework. We are using scripting tracker to scan and record the properties. We have some queries that I would like to post it here for your review. Could you please guide us on how to solve these issues.
For Add-On Installation tool, [tcode: saint] it should select the entire row, copy and paste and then it should click continue. We tried this option to copy the entire row, but it is throwing an error as “AttributeError:.getCellValue”
${rowCount} Get Row Count wnd[0]/usr/subLIST_AREA:SAPLSAINT_UI:0104/tblSAPLSAINT_UIADDON_TO_INSTALL
FOR ${i} IN RANGE 0 ${rowCount} ${cellText} Get Cell Value wnd[0]/usr/subLIST_AREA:SAPLSAINT_UI:0104/tblSAPLSAINT_UIADDON_TO_INSTALL 0 wnd[0]/usr/subLIST_AREA:SAPLSAINT_UI:0104/tblSAPLSAINT_UIADDON_TO_INSTALL/txtWA_ADDON_TO_INSTALL-DISP_NAME[0,0]****
Log ${cellText} Run Keyword If ${cellText} == ST Set Test Variable ${foundRow} ${i} Log Found text in row: ${foundRow} END
For tcode: SM69, for scrolling the table and to take screenshot, we have selected the table row and sent Vkey for page down. But, it shows the error as ValueError: Cannot send Vkey to given window, is window wnd[0] actually open?
Run Transaction sm69 Send Vkey 0 sapGui.Take Screenshot sm69_1.jpg Sleep 1 Select Table Row /app/con[0]/ses[0]/wnd[0]/usr/cntlEXT_COM/shellcont/shell 0 Sleep 1 Send Vkey 82
For selecting the settings folder under the tcode: scot, we have defined the selected node, but we are getting the attribute error. AttributeError: Property '.selectedNode' cannot be set.
Select Node wnd[0]/shellcont/shell/shellcont[1]/shell 23 Select Node wnd[0]/shellcont/shell/shellcont[1]/shell 1 Doubleclick Element wnd[0]/shellcont/shell/shellcont[1]/shell 23 Settings
Regards, Brindha