frankvanderkuur / robotframework-sapguilibrary

A Robot Framework Library for automating the SAP GUI desktop client
Apache License 2.0
51 stars 22 forks source link

SAPGUI Library queries using Robot Framework #20

Open BrindhaBCS opened 9 months ago

BrindhaBCS commented 9 months ago

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.

  1. 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

  2. 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

  3. 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