RobotSapiens library_Unable to enter the user details

Hi,

I have started using the “RobotSpaiens” for one of my SAP client.

I am able to connect to the SAP login, navigate to the login screen but unable to enter the Use and Password details. tried different ways but unable to login.

I have used script recording and playback option to know the locators. The below are the locator details suggested by the tool.

session.findById(“wnd[0]/usr/txtRSYST-BNAME”).text = “t”
session.findById(“wnd[0]/usr/pwdRSYST-BCODE”).text = “********”

I tried the below syntax with different combinations.

For every attempt, I am getting the error “NotFound: The text field with the locator ‘@ User’ could not be found. Hint: Check the spelling

NotFound: The text field with the locator ‘txtRSYST-BNAME’ could not be found. Hint: Check the spelling

NotFound: The text field with the locator ‘User’ could not be found. Hint: Check the spelling

Please help me asap as I have to build a POC to grab a new opportunity.

I’ve not used RobotSpaiens myself, so my answer will be fairly general in nature and based on the docs, hopefully it’s helpful (This is why I didn’t reply earlier, I was hoping someone with more experience with this library would reply)

  • First is this the standard SAP GUI login screen or a custom one?
  • Second are you using SAP GUI or Net Weaver Business Client?

From what I remember of the RobotSpaiens demo, the point was to use the field labels rather than the ID’s.

I see you tried the locator ‘User’ and the locator ‘@ User’, based on the Fill Text Field documentation the locator ‘User’ means the label is to the left of the field and the locator ‘@ User’ is for when the label is above the field, which is it in your case?

Also is your SAP login screen in English or another language? If it’s another language maybe type the labels in your script as they are in the language of your system.

The Fill Text Field documentation, also mentions Scripting Tracker can be used to get the field name, did you this to get the id’s you mentioned above? If so have you tried Fill Text Field wnd[0]/usr/txtRSYST-BNAME <username>?

Hopefully something here helps,

Dave.