Robotframework for SAP Gui

1,434 views
Skip to first unread message

Siviwe super

unread,
Feb 20, 2019, 1:19:15 PM2/20/19
to robotframework-users
Hi

I am new in robotframework and I don't know Python either, I want to automate SAP GUI

I have SAP GUI Login screen opened but I don't know how to identify the SAP window using Roborframework.

I am expecting something that allows me to pass instance name, client, username and password but I am not finding any.

Please find attached screenshots
Imported Libraries
SapGuiLibrary

Regards,
Siviwe

citrix error.PNG
connection screen.PNG
login screen.PNG
tracker screenshot.PNG

Anne kootstra

unread,
Feb 22, 2019, 2:44:59 AM2/22/19
to robotframework-users
Have you had a look at the following documenation sources: 


These two pieces of documentation explain how to find the locators and which tooling to use for it. 

Kind regards,

Anne

Op woensdag 20 februari 2019 19:19:15 UTC+1 schreef Siviwe super:

venkatesh helwar

unread,
Apr 9, 2019, 4:45:35 AM4/9/19
to robotframework-users
Hi Anne ,
 Any sample scripts of robot framework with SapGui Library usage.
Like how to connect existing session,how to enter a value in text box.I have done the setup but sapgui library methods are not working 
For example 
Input Text wnd[0]//usr//txtRSYST-BNAME, xxxxxxx
giving  AttributeError: 'int' object has no attribute 'findByI

Thanks,
Venlkatesh

LSM1981

unread,
Jun 10, 2019, 2:40:12 AM6/10/19
to robotframework-users
Dear All,

have you automated using Robot Framework for SAP using SapGuiLibrary ?.
I am struggling to automate.
cannot resolve the AttributeError: 'int' object has no attribute 'findById'. Some setting or initialization is missing
can you please help?
Email - Muruga...@gmail.com or 9791853401.
Your timely support will help me a lot.

*** Settings ***
Library           DatabaseLibrary
Library           OperatingSystem
Library            SikuliLibrary
Library            SapGuiLibrary


*** Variables ***



*** Test Cases ***
RMSSAP
        SikuliLibrary.Open Application  C://Program Files (x86)//SAP//FrontEnd//SAPgui//saplgpad.exe
        Sleep     10
        SikuliLibrary.Add Image Path     ../../RobotFramework/Pictures/        
        SikuliLibrary.Click   Session148.png
        Sleep     10
        SikuliLibrary.Double Click     Session148.png
        Sleep     20
        Connect To Session  1        
        SapGuiLibrary.Input Text   wnd[0]/usr/txtRSYST-BNAME   testuser
        SapGuiLibrary.Input Text   wnd[0]/usr/pwdRSYST-BCODE  testpwd


None of the keywords given in the SAP GUI Library documentation "https://frankvanderkuur.github.io/SapGuiLibrary.html" errors out with the message
AttributeError: 'int' object has no attribute 'findById'. 

LSM1981

unread,
Jun 10, 2019, 2:40:22 AM6/10/19
to robotframework-users
Hi Venkatesh/Anne/All,
Is the issue resolved?
I am also getting the same issue.
Not sure -  what is the syntax for the code. 
No documentation also available on how to use SapGuiLibrary for RobotFramework. 

Please support in this.

DISHA MUNSHI

unread,
Jun 5, 2020, 2:59:40 AM6/5/20
to robotframework-users
Maybe You could use this link. One needs to enable SAP server for accepting the user scripting.

venkatesh helwar

unread,
Nov 26, 2020, 4:08:29 AM11/26/20
to munshi...@gmail.com, robotframework-users
Hi,
It's for SAP GUI tree child node count.

Thanks & Regards
VENKATESH


--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/54141476-bcd0-4bb7-b322-b44fcebacbb4o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages